From f1f345bbf12d03e831bff00dbc50901739012acf Mon Sep 17 00:00:00 2001 From: Herve Tribouilloy Date: Mon, 24 Jun 2024 11:10:23 +0100 Subject: [PATCH] Ensure the widget chooser selects the block id column rather than another element in the DOM --- app/code/Magento/Cms/Block/Adminhtml/Block/Widget/Chooser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Cms/Block/Adminhtml/Block/Widget/Chooser.php b/app/code/Magento/Cms/Block/Adminhtml/Block/Widget/Chooser.php index 897ce651146b8..86976f6c912e8 100644 --- a/app/code/Magento/Cms/Block/Adminhtml/Block/Widget/Chooser.php +++ b/app/code/Magento/Cms/Block/Adminhtml/Block/Widget/Chooser.php @@ -100,7 +100,7 @@ public function getRowClickCallback() $js = ' function (grid, event) { var trElement = Event.findElement(event, "tr"); - var blockId = trElement.down("td").next().next().innerHTML.replace(/^\s+|\s+$/g,""); + var blockId = trElement.down("td").innerHTML.replace(/^\s+|\s+$/g,""); var blockTitle = trElement.down("td").next().innerHTML; ' . $chooserJsObject .