Skip to content

Commit b392c7c

Browse files
committed
MC-15000: Add New Attribute on the admin product page with JS error
- validation has be called as a function inside the component
1 parent ce13acf commit b392c7c

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/Catalog/view/adminhtml/web/catalog/product/edit

1 file changed

+3
-3
lines changed

app/code/Magento/Catalog/view/adminhtml/web/catalog/product/edit/attribute.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55

66
define([
77
'jquery',
8-
'mage/mage'
8+
'mage/mage',
9+
'validation'
910
], function ($) {
1011
'use strict';
1112

1213
return function (config, element) {
13-
14-
$(element).mage('form').mage('validation', {
14+
$(element).mage('form').validation({
1515
validationUrl: config.validationUrl
1616
});
1717
};

0 commit comments

Comments
 (0)