We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7ff60f commit 0fdef68Copy full SHA for 0fdef68
app/code/Magento/Customer/Model/Resource/GroupRepository.php
@@ -124,7 +124,7 @@ public function save(\Magento\Customer\Api\Data\GroupInterface $group)
124
* Would like a better way to determine this error condition but
125
* difficult to do without imposing more database calls
126
*/
127
- if ($e->getMessage() === __('Customer Group already exists.')) {
+ if ($e->getMessage() == (string)__('Customer Group already exists.')) {
128
throw new InvalidTransitionException('Customer Group already exists.');
129
}
130
throw $e;
0 commit comments