We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42f38d6 commit 07a0bffCopy full SHA for 07a0bff
lib/web/mage/backend/validation.js
@@ -233,7 +233,9 @@
233
'validate-downloadable-file': [
234
function (v, element) {
235
var elmParent = $(element).parent(),
236
- linkType = elmParent.find('input[value="file"]');
+ linkType = elmParent.find('input[value="file"]'),
237
+ newFileContainer;
238
+
239
if (linkType.is(':checked') && (v === '' || v === '[]')) {
240
newFileContainer = elmParent.find('.new-file');
241
if (!alertAlreadyDisplayed && (newFileContainer.empty() || newFileContainer.is(':visible'))) {
0 commit comments