File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
app/code/Magento/Eav/Model/Entity/Collection
dev/tests/integration/testsuite/Magento/Customer/Block/Adminhtml/Edit/Tab/View
lib/internal/Magento/Framework/Data Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1719,5 +1719,4 @@ public function removeAllFieldsFromSelect()
1719
1719
{
1720
1720
return $ this ->removeAttributeToSelect ();
1721
1721
}
1722
-
1723
1722
}
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+
6
7
namespace Magento \Customer \Block \Adminhtml \Edit \Tab \View ;
7
8
8
9
use Magento \Customer \Controller \RegistryConstants ;
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+
6
7
namespace Magento \Framework \Data ;
7
8
8
9
use Magento \Framework \Data \Collection \EntityFactoryInterface ;
@@ -401,6 +402,7 @@ public function addItem(\Magento\Framework\DataObject $item)
401
402
402
403
if ($ itemId !== null ) {
403
404
if (isset ($ this ->_items [$ itemId ])) {
405
+ //phpcs:ignore Magento2.Exceptions.DirectThrow
404
406
throw new \Exception (
405
407
'Item ( ' . get_class ($ item ) . ') with the same ID " ' . $ item ->getId () . '" already exists. '
406
408
);
You can’t perform that action at this time.
0 commit comments