Skip to content

Commit aee085d

Browse files
authored
ENGCOM-5590: Resolve Useless "Checkbox" at "Newsletter Problems Report", console error when clicking (issue 24102) #24104
2 parents e28b0c3 + e312c23 commit aee085d

File tree

1 file changed

+6
-4
lines changed
  • app/code/Magento/Newsletter/view/adminhtml/templates/problem

1 file changed

+6
-4
lines changed

app/code/Magento/Newsletter/view/adminhtml/templates/problem/list.phtml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ require(["prototype", "mage/adminhtml/events"], function(){
1717

1818
problemController = {
1919
checkCheckboxes:function (controlCheckbox) {
20-
var elements = $('problemGrid').getElementsByClassName('problemCheckbox');
21-
elements.each(function (obj) {
22-
obj.checked = controlCheckbox.checked;
23-
});
20+
var elements = $$('input.problemCheckbox');
21+
if (elements && elements.length) {
22+
elements.each(function (obj) {
23+
obj.checked = controlCheckbox.checked;
24+
});
25+
}
2426
},
2527
rowClick:function (e) {
2628
if (!Event.element(e).hasClassName('problemCheckbox')) {

0 commit comments

Comments
 (0)