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()
160160 // Map the columns to FileMaker fields and strip out read-only fields/containers
161161 $ fieldsToWrite = $ this ->model ->getAttributesForFileMakerWrite ();
162162
163- $ modifiedPortals = null ;
163+ $ modifiedPortals = [] ;
164164 foreach ($ fieldsToWrite as $ key => $ value ) {
165165 // Check if the field is a portal (it should be an array if it is)
166166 if (is_array ($ value )) {
@@ -169,7 +169,7 @@ public function editRecord()
169169 }
170170 }
171171
172- if ($ fieldsToWrite ->count () > 0 || count ($ modifiedPortals ?? [] ) > 0 ) {
172+ if ($ fieldsToWrite ->count () > 0 || count ($ modifiedPortals ) > 0 ) {
173173 // we have some regular text fields to update
174174 // forward this request to a base query builder to execute the edit record request
175175 $ response = $ this ->query ->fieldData ($ fieldsToWrite ->toArray ())->portalData ($ modifiedPortals )->recordId ($ model ->getRecordId ())->editRecord ();
You can’t perform that action at this time.
0 commit comments