File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
app/code/Magento/Catalog/Helper/Product Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -153,11 +153,8 @@ public function renderConfigureResult(\Magento\Framework\Object $configureResult
153
153
$ currentStoreId = $ this ->_storeManager ->getStore ()->getId ();
154
154
}
155
155
156
- try {
157
- $ product = $ this ->productRepository ->getById ($ configureResult ->getProductId (), false , $ currentStoreId );
158
- } catch (NoSuchEntityException $ e ) {
159
- throw new \Magento \Framework \Exception \LocalizedException (__ ('The product is not loaded. ' ), [], $ e );
160
- }
156
+ $ product = $ this ->productRepository ->getById ($ configureResult ->getProductId (), false , $ currentStoreId );
157
+
161
158
$ this ->_coreRegistry ->register ('current_product ' , $ product );
162
159
$ this ->_coreRegistry ->register ('product ' , $ product );
163
160
You can’t perform that action at this time.
0 commit comments