diff --git a/src/app/Library/CrudPanel/Traits/SaveActions.php b/src/app/Library/CrudPanel/Traits/SaveActions.php index de4d494179..d7d5fa759f 100644 --- a/src/app/Library/CrudPanel/Traits/SaveActions.php +++ b/src/app/Library/CrudPanel/Traits/SaveActions.php @@ -275,6 +275,10 @@ public function getSaveAction() //get only the save actions that pass visibility callback $saveOptions = $this->getVisibleSaveActions(); + if (empty($saveOptions)) { + return []; + } + //get the current action $saveCurrent = $this->getCurrentSaveAction($saveOptions); diff --git a/src/resources/views/crud/inc/form_save_buttons.blade.php b/src/resources/views/crud/inc/form_save_buttons.blade.php index b5d6f3447f..7bcfbd3798 100644 --- a/src/resources/views/crud/inc/form_save_buttons.blade.php +++ b/src/resources/views/crud/inc/form_save_buttons.blade.php @@ -1,5 +1,6 @@ -@if(isset($saveAction['active']) && !is_null($saveAction['active']['value'])) -