From 7de0bc1e562a93598c74b315100a0090237083aa Mon Sep 17 00:00:00 2001 From: MaximLogic Date: Thu, 8 Jan 2026 11:58:14 +0200 Subject: [PATCH] magento/magento2#35670: Meta tags auto generation: variables cannot be used multiple times - fixed issue with multiple identical placeholders in catalog fields masks not being replaced correctly --- .../view/adminhtml/web/js/components/import-handler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/Catalog/view/adminhtml/web/js/components/import-handler.js b/app/code/Magento/Catalog/view/adminhtml/web/js/components/import-handler.js index cd3de47c03ebd..a8aa3ddd22c2e 100644 --- a/app/code/Magento/Catalog/view/adminhtml/web/js/components/import-handler.js +++ b/app/code/Magento/Catalog/view/adminhtml/web/js/components/import-handler.js @@ -1,5 +1,5 @@ /** - * Copyright 2016 Adobe + * Copyright 2026 Adobe * All Rights Reserved. */ @@ -67,7 +67,7 @@ define([ } _.each(this.values, function (propertyValue, propertyName) { - string = string.replace('{{' + propertyName + '}}', propertyValue); + string = string.split('{{' + propertyName + '}}').join(propertyValue); nonEmptyValueFlag = nonEmptyValueFlag || !!propertyValue; });