From 9ff62c966e733ad5919756a1def337c965e3b1cf Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 15 Apr 2023 21:03:00 -0700 Subject: [PATCH 1/2] Check for $item (matters mostly in custom report blade) Signed-off-by: snipe --- resources/views/partials/forms/edit/category-select.blade.php | 2 +- resources/views/partials/forms/edit/supplier-select.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/partials/forms/edit/category-select.blade.php b/resources/views/partials/forms/edit/category-select.blade.php index ba84dc7e77..a5fd9471f3 100644 --- a/resources/views/partials/forms/edit/category-select.blade.php +++ b/resources/views/partials/forms/edit/category-select.blade.php @@ -3,7 +3,7 @@ {{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }} -
+
@if ($supplier_id = old($fieldname, (isset($item)) ? $item->{$fieldname} : ''))