File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
app/code/Magento/Catalog/Controller/Adminhtml/Product/Initialization Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -278,6 +278,7 @@ public function initialize(Product $product)
278
278
* @param Product $product
279
279
* @return Product
280
280
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
281
+ * @SuppressWarnings(PHPMD.UnusedLocalVariable)
281
282
* @since 101.0.0
282
283
*/
283
284
protected function setProductLinks (Product $ product )
@@ -301,7 +302,7 @@ protected function setProductLinks(Product $product)
301
302
}
302
303
303
304
foreach ($ linkTypes as $ linkType => $ readonly ) {
304
- if (isset ($ links [$ linkType ]) && ! $ readonly ) {
305
+ if (isset ($ links [$ linkType ])) {
305
306
foreach ((array ) $ links [$ linkType ] as $ linkData ) {
306
307
if (empty ($ linkData ['id ' ])) {
307
308
continue ;
You can’t perform that action at this time.
0 commit comments