File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ public function editRecord()
168
168
}
169
169
170
170
// set the ModID if that option is set on the model
171
- if ($ model ->withModId ()) {
171
+ if ($ model ->usingModId ()) {
172
172
$ this ->query ->modId ($ model ->getModId ());
173
173
}
174
174
Original file line number Diff line number Diff line change @@ -224,14 +224,19 @@ public function setModId($modId): void
224
224
/**
225
225
* Include the modification Id when editing a record
226
226
*/
227
- public function withModId ($ include = true ): self
227
+ public function withModId ($ include = true ): static
228
228
{
229
229
// remove any set ModId if the user wishes to remove it
230
230
$ this ->useModId = $ include ;
231
231
232
232
return $ this ;
233
233
}
234
234
235
+ public function usingModId (): bool
236
+ {
237
+ return $ this ->useModId ;
238
+ }
239
+
235
240
public function getReadOnlyFields ()
236
241
{
237
242
return $ this ->readOnlyFields ;
You can’t perform that action at this time.
0 commit comments