From 37e95597a6fa11b77d16cda5221743fff9747596 Mon Sep 17 00:00:00 2001 From: Henning Leutz <leutz@pcsg.de> Date: Mon, 14 Jun 2021 11:36:52 +0200 Subject: [PATCH] fix: on create - hidden check --- src/QUI/ERP/Discount/Handler.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/QUI/ERP/Discount/Handler.php b/src/QUI/ERP/Discount/Handler.php index 9cb6878..b706918 100644 --- a/src/QUI/ERP/Discount/Handler.php +++ b/src/QUI/ERP/Discount/Handler.php @@ -86,6 +86,10 @@ public function __construct() $childData['active'] = 0; } + if (empty($childData['hidden'])) { + $childData['hidden'] = 0; + } + if (empty($childData['scope'])) { $childData['scope'] = self::DISCOUNT_SCOPE_TOTAL; } -- GitLab