Skip to content

Commit

Permalink
LPS-84472 Cannot create document if both Overall Maximum Upload Reque…
Browse files Browse the repository at this point in the history
…st Size and Maximum File Size are set to 0
  • Loading branch information
IstvanD authored and brianchandotcom committed Sep 18, 2018
1 parent f094540 commit 250ce58
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ AUI.add(
var nodeType = node.get('type').toLowerCase();

if (nodeType === 'file') {
return (node._node.files[0].size <= ruleValue);
return (ruleValue === 0 || node._node.files[0].size <= ruleValue);
}

return true;
Expand Down Expand Up @@ -336,7 +336,7 @@ AUI.add(
var fieldName = rule.fieldName;
var validatorName = rule.validatorName;

if (rule.body && !rule.custom) {
if ((rule.body || rule.body === 0) && !rule.custom) {
value = rule.body;
}

Expand Down

0 comments on commit 250ce58

Please sign in to comment.