Skip to content

Instantly share code, notes, and snippets.

@ssx
Created April 22, 2025 07:09
Show Gist options
  • Save ssx/8ecf6e98d5d3701f09c4bfbf532037a5 to your computer and use it in GitHub Desktop.
Save ssx/8ecf6e98d5d3701f09c4bfbf532037a5 to your computer and use it in GitHub Desktop.
ACSD-65540_B2B_1.5.2.patch
diff --git a/vendor/magento/module-company/Setup/Patch/Data/SetCompanyForStructure.php b/vendor/magento/module-company/Setup/Patch/Data/SetCompanyForStructure.php
index 4dcb3dbcb5b3..7ba339a8703e 100644
--- a/vendor/magento/module-company/Setup/Patch/Data/SetCompanyForStructure.php
+++ b/vendor/magento/module-company/Setup/Patch/Data/SetCompanyForStructure.php
@@ -71,7 +71,7 @@ public function apply()
$this->moduleDataSetup->getConnection()->update(
$this->moduleDataSetup->getTable('company_structure'),
['company_id' => $company['entity_id']],
- ['REGEXP_LIKE(path, ?)' =>
+ ['path REGEXP ?' =>
'^' . $adminStructureIds[$company['super_user_id']]['structure_id'] . '(/.+)?$']
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment