File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/app/Library/CrudPanel/Traits Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -119,16 +119,18 @@ public function parseRelationFieldNamesFromHtml($fields)
119119 return $ fields ;
120120 }
121121
122- protected function changeBelongsToNamesFromRelationshipToForeignKey ($ data ) {
122+ protected function changeBelongsToNamesFromRelationshipToForeignKey ($ data )
123+ {
123124 $ belongs_to_fields = $ this ->getFieldsWithRelationType ('BelongsTo ' );
124125
125126 foreach ($ belongs_to_fields as $ relation_field ) {
126127 $ relation = $ this ->getRelationInstance ($ relation_field );
127- if (Arr::has ($ data , $ relation ->getRelationName ())) {
128+ if (Arr::has ($ data , $ relation ->getRelationName ())) {
128129 $ data [$ relation ->getForeignKeyName ()] = Arr::get ($ data , $ relation ->getRelationName ());
129130 unset($ data [$ relation ->getRelationName ()]);
130131 }
131132 }
133+
132134 return $ data ;
133135 }
134136
You can’t perform that action at this time.
0 commit comments