Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content constructor issue #14

Open
maquowicz opened this issue Feb 20, 2023 · 1 comment
Open

Content constructor issue #14

maquowicz opened this issue Feb 20, 2023 · 1 comment

Comments

@maquowicz
Copy link

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
Copy link

ggm-dev commented Apr 20, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants