File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -294,21 +294,21 @@ public function reorderMenuItems(array $orderedItems): void
294
294
295
295
// Validate that all items belong to this menu
296
296
$ itemIds = array_column ($ orderedItems , 'id ' );
297
-
297
+
298
298
// Filter out null IDs
299
- $ itemIds = array_filter ($ itemIds , function ($ id ) {
299
+ $ itemIds = array_filter ($ itemIds , function ($ id ) {
300
300
return $ id !== null && is_numeric ($ id );
301
301
});
302
-
302
+
303
303
if (empty ($ itemIds )) {
304
304
Notification::make ()
305
305
->title (flexiblePagesTrans ('menu_items.errors.no_items_to_reorder ' ))
306
306
->danger ()
307
307
->send ();
308
-
308
+
309
309
return ;
310
310
}
311
-
311
+
312
312
$ validItems = $ menuItemModel ::whereIn ('id ' , $ itemIds )
313
313
->where ('menu_id ' , $ this ->record ->id )
314
314
->count ();
You can’t perform that action at this time.
0 commit comments