From 9e08312808b321c4d994d3bb9f5c6d8194d4b5b1 Mon Sep 17 00:00:00 2001 From: Lukas Gabsi Date: Fri, 16 Jun 2023 09:46:24 +0200 Subject: [PATCH] fix: attribute input manager throws error if no inputType was specified --- .../Business/Attribute/AttributeInputManager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Spryker/Zed/ProductManagement/Business/Attribute/AttributeInputManager.php b/src/Spryker/Zed/ProductManagement/Business/Attribute/AttributeInputManager.php index b25d10be..3d59954d 100644 --- a/src/Spryker/Zed/ProductManagement/Business/Attribute/AttributeInputManager.php +++ b/src/Spryker/Zed/ProductManagement/Business/Attribute/AttributeInputManager.php @@ -9,6 +9,7 @@ use Spryker\Zed\Gui\Communication\Form\Type\Select2ComboBoxType; use Symfony\Component\Form\Extension\Core\Type\TextareaType; +use Symfony\Component\Form\Extension\Core\Type\TextType; class AttributeInputManager { @@ -23,7 +24,7 @@ public function getSymfonyInputType($inputType, $value = null) $inputType = strtolower($inputType); $useTextArea = mb_strlen($value) > 255; - $input = 'text'; + $input = TextType::class; switch ($inputType) { case 'textarea':