Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Fix wrong comparison causing EAV attributes to not be created
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstroker authored May 25, 2022
1 parent ff7e2b5 commit 18f8a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Setup/UpgradeData.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface
{
$setup->startSetup();

if (version_compare($context->getVersion(), '2.0.0', '=<')) {
if (version_compare($context->getVersion(), '2.0.0', '<=')) {
$eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
$this->ensureCrosssellTemplateAttribute($eavSetup);
$this->ensureUpsellTemplateAttribute($eavSetup);
Expand Down

0 comments on commit 18f8a49

Please sign in to comment.