From 1faeddccb22ddb64cbbbafe1216fdc809f5b6745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sat, 11 Feb 2023 23:18:21 +0100 Subject: [PATCH] Fixed bug that default_currency and shipping costs fields of supplier were not editable --- src/Form/AdminPages/SupplierForm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Form/AdminPages/SupplierForm.php b/src/Form/AdminPages/SupplierForm.php index b3a62d7f..95cecfd3 100644 --- a/src/Form/AdminPages/SupplierForm.php +++ b/src/Form/AdminPages/SupplierForm.php @@ -50,7 +50,7 @@ class SupplierForm extends CompanyForm 'required' => false, 'label' => 'supplier.edit.default_currency', 'disable_not_selectable' => true, - 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'move', $entity), + 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), ]); $builder->add('shipping_costs', BigDecimalMoneyType::class, [ @@ -58,7 +58,7 @@ class SupplierForm extends CompanyForm 'currency' => $this->default_currency, 'scale' => 3, 'label' => 'supplier.shipping_costs.label', - 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'move', $entity), + 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), ]); } }