File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ public function editRecord()
160
160
// Map the columns to FileMaker fields and strip out read-only fields/containers
161
161
$ fieldsToWrite = $ this ->model ->getAttributesForFileMakerWrite ();
162
162
163
- $ modifiedPortals = null ;
163
+ $ modifiedPortals = [] ;
164
164
foreach ($ fieldsToWrite as $ key => $ value ) {
165
165
// Check if the field is a portal (it should be an array if it is)
166
166
if (is_array ($ value )) {
@@ -169,7 +169,7 @@ public function editRecord()
169
169
}
170
170
}
171
171
172
- if ($ fieldsToWrite ->count () > 0 || count ($ modifiedPortals ?? [] ) > 0 ) {
172
+ if ($ fieldsToWrite ->count () > 0 || count ($ modifiedPortals ) > 0 ) {
173
173
// we have some regular text fields to update
174
174
// forward this request to a base query builder to execute the edit record request
175
175
$ response = $ this ->query ->fieldData ($ fieldsToWrite ->toArray ())->portalData ($ modifiedPortals )->recordId ($ model ->getRecordId ())->editRecord ();
You can’t perform that action at this time.
0 commit comments