diff --git a/app/Http/Controllers/CustomFieldsController.php b/app/Http/Controllers/CustomFieldsController.php index aa26985f11..62f2cf32f7 100644 --- a/app/Http/Controllers/CustomFieldsController.php +++ b/app/Http/Controllers/CustomFieldsController.php @@ -87,7 +87,7 @@ class CustomFieldsController extends Controller ]); - if (!in_array(Input::get('format'), array_keys(CustomField::$PredefinedFormats))) { + if ($request->has("custom_format")) { $field->format = e($request->get("custom_format")); } else { $field->format = e($request->get("format")); @@ -96,7 +96,6 @@ class CustomFieldsController extends Controller if ($field->save()) { return redirect()->route("fields.index")->with("success", trans('admin/custom_fields/message.field.create.success')); } else { - // dd($field); return redirect()->back()->withInput()->with('error', trans('admin/custom_fields/message.field.create.error')); } diff --git a/app/Notifications/CheckoutConsumableNotification.php b/app/Notifications/CheckoutConsumableNotification.php index ef5ab79e4c..1811c70401 100644 --- a/app/Notifications/CheckoutConsumableNotification.php +++ b/app/Notifications/CheckoutConsumableNotification.php @@ -80,7 +80,7 @@ class CheckoutConsumableNotification extends Notification /** * Send an email if an email should be sent at checkin/checkout */ - if ($this->item->checkin_email()) { + if ((method_exists($this->item, 'checkin_email')) && ($this->item->checkin_email())) { $notifyBy[1] = 'mail'; } diff --git a/resources/views/categories/edit.blade.php b/resources/views/categories/edit.blade.php index 6a7cc309bd..88bc6457be 100755 --- a/resources/views/categories/edit.blade.php +++ b/resources/views/categories/edit.blade.php @@ -32,41 +32,52 @@ -