File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
app/code/Magento/User/view/adminhtml/templates/user Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -72,14 +72,17 @@ require([
72
72
73
73
});
74
74
</script>
75
- <script type="text/x-magento-init">
76
- {
77
- "[data-role=delete-user]" : {
78
- "deleteUserAccount" : {
79
- "message": "<?php echo $ editBlock ->escapeHtml ($ editBlock ->getDeleteMessage ()) ?> ",
80
- "url": "<?php /* @noEscape */ echo $ editBlock ->getDeleteUrl (); ?> ",
81
- "objId": "<?php echo $ editBlock ->escapeHtml ($ editBlock ->getObjectId ()) ?> "
75
+
76
+ <?php if (is_object ($ editBlock )): ?>
77
+ <script type="text/x-magento-init">
78
+ {
79
+ "[data-role=delete-user]" : {
80
+ "deleteUserAccount" : {
81
+ "message": "<?php echo $ editBlock ->escapeHtml ($ editBlock ->getDeleteMessage ()) ?> ",
82
+ "url": "<?php /* @noEscape */ echo $ editBlock ->getDeleteUrl (); ?> ",
83
+ "objId": "<?php echo $ editBlock ->escapeHtml ($ editBlock ->getObjectId ()) ?> "
84
+ }
82
85
}
83
86
}
84
- }
85
- </script >
87
+ </script>
88
+ <?php endif ; ? >
You can’t perform that action at this time.
0 commit comments