From 8435f4c1b6a30a146d1fef50018f50eef090f516 Mon Sep 17 00:00:00 2001 From: Matthias Goudjil Date: Tue, 23 Apr 2024 21:38:48 +0200 Subject: [PATCH] related #35591 - bug 3 : remove comments --- .../Form/Admin/Sell/Catalog/AttributeType.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/PrestaShopBundle/Form/Admin/Sell/Catalog/AttributeType.php b/src/PrestaShopBundle/Form/Admin/Sell/Catalog/AttributeType.php index ce118f1701421..be11f1f5226b0 100644 --- a/src/PrestaShopBundle/Form/Admin/Sell/Catalog/AttributeType.php +++ b/src/PrestaShopBundle/Form/Admin/Sell/Catalog/AttributeType.php @@ -107,7 +107,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) . ' ' . $this->trans('Invalid characters:', 'Admin.Notifications.Info') . ' ' . TypedRegexValidator::CATALOG_CHARS, ]) - ->add('color', ColorType::class, [ 'label' => $this->trans('Color', 'Admin.Global'), 'row_attr' => array( @@ -120,16 +119,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) 'required' => false, ]); - // if ($hasAttributeGroupId === true && $attributeGroup->group_type === AttributeGroupType::ATTRIBUTE_GROUP_TYPE_COLOR) { - // $builder->add('color', ColorType::class, [ - // 'label' => $this->trans('Color', 'Admin.Global'), - // 'required' => false, - // ])->add('texture', FileType::class, [ - // 'label' => $this->trans('Texture', 'Admin.Global'), - // 'required' => false, - // ]); - // } - if ($this->multistoreFeature->isUsed()) { $builder->add('shop_association', ShopChoiceTreeType::class, [ 'label' => $this->trans('Shop association', 'Admin.Global'),