magesuite / brand-management

Open Software License 3.0
4 stars 3 forks source link

Content constructor issue #14

Open maquowicz opened 1 year ago

maquowicz commented 1 year ago

Bellow stuff is missing from a7f76d7

diff --git a/vendor/creativestyle/magesuite-brand-management/Model/Brands/DataProvider.php b/vendor/creativestyle/magesuite-brand-management/Model/Brands/DataProvider.php
index 4ef805008..d84b3b2a8 100644
--- a/vendor/creativestyle/magesuite-brand-management/Model/Brands/DataProvider.php
+++ b/vendor/creativestyle/magesuite-brand-management/Model/Brands/DataProvider.php
@@ -117,7 +117,6 @@ class DataProvider extends \Magento\Ui\DataProvider\AbstractDataProvider
                 'brand_additional_icon_group' => 'use_config.brand_additional_icon',
                 'brand_url_key_group' => 'use_config.brand_url_key',
                 'is_featured_group' => 'use_config.is_featured',
-                'layout_update_xml_group' => 'use_config.layout_update_xml',
                 'content_constructor_content_group' => 'use_config.content_constructor_content',
                 'show_in_brand_carousel_group' => 'use_config.show_in_brand_carousel',
                 'short_description_group' => 'use_config.short_description',
diff --git a/vendor/creativestyle/magesuite-brand-management/Setup/BrandsSetup.php b/vendor/creativestyle/magesuite-brand-management/Setup/BrandsSetup.php
index a9dee00a6..5326e6717 100644
--- a/vendor/creativestyle/magesuite-brand-management/Setup/BrandsSetup.php
+++ b/vendor/creativestyle/magesuite-brand-management/Setup/BrandsSetup.php
@@ -98,10 +98,18 @@ class BrandsSetup extends \Magento\Eav\Setup\EavSetup
                         'sort_order' => 40,
                         'global' => \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_STORE,
                         'source' => 'Magento\Eav\Model\Entity\Attribute\Source\Boolean'
+                    ],
+                    'content_constructor_content' => [
+                        'type' => 'text',
+                        'label' => 'Content Constructor Content',
+                        'input' => 'text',
+                        'required' => false,
+                        'sort_order' => 50,
+                        'global' => \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_STORE
                     ]
                 ]
             ]
         ];
         return $entities;
     }
-}
\ No newline at end of file
+}

After sorting it out run: UPDATE setup_module SET data_version = "0.0.10" WHERE module = "MageSuite_BrandManagement"; and ./bin/magento s:up

ggm-dev commented 1 year ago

Thanks for posting this patch. Looks like this is still an issue with the brands module. This was my error before applying patch when trying to access a brand via admin panel:

1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): The "componentType" configuration parameter is required for the "layout_update_xml_group" component.