Skip to content

Commit 064d6d3

Browse files
author
OlgaVasyltsun
committed
MAGETWO-98353: New review form changes
1 parent d9259f4 commit 064d6d3

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/Review/Block/Adminhtml

1 file changed

+2
-1
lines changed

app/code/Magento/Review/Block/Adminhtml/Add.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,14 @@ protected function _construct()
9494
if( response.error ) {
9595
alert(response.message);
9696
} else if( response.id ){
97+
var productName = response.name;
9798
$("product_id").value = response.id;
9899
99100
$("product_name").innerHTML = \'<a href="' .
100101
$this->getUrl(
101102
'catalog/product/edit'
102103
) .
103-
'id/\' + response.id + \'" target="_blank">\' + response.name + \'</a>\';
104+
'id/\' + response.id + \'" target="_blank">\' + productName.escapeHTML() + \'</a>\';
104105
} else if ( response.message ) {
105106
alert(response.message);
106107
}

0 commit comments

Comments
 (0)