Skip to content

Commit a82fb5a

Browse files
Merge branch 'develop' into bump-version-1.1.5
2 parents f112bcf + 4d69738 commit a82fb5a

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

patches.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,9 @@
394394
},
395395
"Fixes the issue where the file generated after Requisition List export is not removed from the var/ directory": {
396396
">=1.3.1 <1.3.6": "MCLOUD-11623__requisition_list_exports_saved_to_var_directory__2.4.5-p1.patch"
397+
},
398+
"Fixes the issue where an SQL syntax error occurs due to the non-existence of the REGEXP_LIKE function when attempting to update the company_structure table.": {
399+
"1.5.2": "MCLOUD-13605__B2B_SQL_syntax_error_due_to_the_REGEXP_LIKE_function__1.5.2.patch"
397400
}
398401
},
399402
"magento/magento2-ee-base": {
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/vendor/magento/module-company/Setup/Patch/Data/SetCompanyForStructure.php b/vendor/magento/module-company/Setup/Patch/Data/SetCompanyForStructure.php
2+
index 4dcb3dbcb5b3..7ba339a8703e 100644
3+
--- a/vendor/magento/module-company/Setup/Patch/Data/SetCompanyForStructure.php
4+
+++ b/vendor/magento/module-company/Setup/Patch/Data/SetCompanyForStructure.php
5+
@@ -71,7 +71,7 @@ public function apply()
6+
$this->moduleDataSetup->getConnection()->update(
7+
$this->moduleDataSetup->getTable('company_structure'),
8+
['company_id' => $company['entity_id']],
9+
- ['REGEXP_LIKE(path, ?)' =>
10+
+ ['path REGEXP ?' =>
11+
'^' . $adminStructureIds[$company['super_user_id']]['structure_id'] . '(/.+)?$']
12+
);
13+
}
14+

0 commit comments

Comments
 (0)