File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
src/app/Library/CrudPanel/Traits Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,21 @@ public function updateTreeOrder($request)
3636 $ item [$ columns ['depth ' ]] = empty ($ item ['depth ' ]) ? null : (int ) $ item ['depth ' ];
3737 $ item [$ columns ['lft ' ]] = empty ($ item ['left ' ]) ? null : (int ) $ item ['left ' ];
3838 $ item [$ columns ['rgt ' ]] = empty ($ item ['right ' ]) ? null : (int ) $ item ['right ' ];
39-
39+
4040 // unset mapped items properties.
41- if ($ columns ['parent_id ' ] !== 'parent_id ' ) { unset($ item ['parent_id ' ]); };
42- if ($ columns ['depth ' ] !== 'depth ' ) { unset($ item ['depth ' ]); }
43- if ($ columns ['lft ' ] !== 'left ' ) { unset($ item ['left ' ]); }
44- if ($ columns ['rgt ' ] !== 'right ' ) { unset($ item ['right ' ]); }
45-
41+ if ($ columns ['parent_id ' ] !== 'parent_id ' ) {
42+ unset($ item ['parent_id ' ]);
43+ }
44+ if ($ columns ['depth ' ] !== 'depth ' ) {
45+ unset($ item ['depth ' ]);
46+ }
47+ if ($ columns ['lft ' ] !== 'left ' ) {
48+ unset($ item ['left ' ]);
49+ }
50+ if ($ columns ['rgt ' ] !== 'right ' ) {
51+ unset($ item ['right ' ]);
52+ }
53+
4654 // unset the item_id property
4755 unset($ item ['item_id ' ]);
4856
You can’t perform that action at this time.
0 commit comments