Skip to content

Commit 092a282

Browse files
committed
account for the possibility that save actions are not defined
1 parent 050b288 commit 092a282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/Library/CrudPanel/Traits/SaveActions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function getFallBackSaveAction()
4747
*/
4848
public function getSaveActionByOrder($order)
4949
{
50-
return array_filter($this->getOperationSetting('save_actions'), function ($arr) use ($order) {
50+
return array_filter($this->getOperationSetting('save_actions') ?? [], function ($arr) use ($order) {
5151
return $arr['order'] == $order;
5252
});
5353
}

0 commit comments

Comments
 (0)