Skip to content

Commit 7c6abe5

Browse files
author
vnayda
committed
MAGETWO-57963: The product page doesn't show all the fields for Product Details - for mainline
-- build fixes
1 parent ef51c17 commit 7c6abe5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/internal/Magento/Framework/EntityManager/Operation/Create.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Magento\Framework\EntityManager\TypeResolver;
1515
use Magento\Framework\App\ResourceConnection;
1616
use Magento\Framework\Exception\AlreadyExistsException;
17+
use Magento\Framework\Phrase;
1718

1819
/**
1920
* Class Create
@@ -118,7 +119,7 @@ public function execute($entity, $arguments = [])
118119
$connection->commit();
119120
} catch (DuplicateException $e) {
120121
$connection->rollBack();
121-
throw new AlreadyExistsException(__('Unique constraint violation found'), $e);
122+
throw new AlreadyExistsException(new Phrase('Unique constraint violation found'), $e);
122123
} catch (\Exception $e) {
123124
$connection->rollBack();
124125
throw $e;

lib/internal/Magento/Framework/EntityManager/Operation/Update.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Magento\Framework\EntityManager\TypeResolver;
1515
use Magento\Framework\App\ResourceConnection;
1616
use Magento\Framework\Exception\AlreadyExistsException;
17+
use Magento\Framework\Phrase;
1718

1819
/**
1920
* Class Update
@@ -117,7 +118,7 @@ public function execute($entity, $arguments = [])
117118
$connection->commit();
118119
} catch (DuplicateException $e) {
119120
$connection->rollBack();
120-
throw new AlreadyExistsException(__('Unique constraint violation found'), $e);
121+
throw new AlreadyExistsException(new Phrase('Unique constraint violation found'), $e);
121122
} catch (\Exception $e) {
122123
$connection->rollBack();
123124
throw $e;

0 commit comments

Comments
 (0)