Skip to content

Commit

Permalink
MAGETWO-55217: [GitHub] Process Public Pull Requests #3050
Browse files Browse the repository at this point in the history
- review comments by omiroshnichenko
  • Loading branch information
iivashchenko committed Jul 22, 2016
1 parent 7b0228f commit 125116e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ define([
this.validation['required-entry'] = false;
this.required(false);
} else {
if (!('is_region_required' in option) || !option['is_region_required']) {
if (option && !option['is_region_required']) {
this.error(false);
this.validation = _.omit(this.validation, 'required-entry');
} else {
Expand Down
2 changes: 1 addition & 1 deletion lib/web/mage/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@
],
"stripped-min-length": [
function (value, element, param) {
return $(element).val().length >= param;
return value.length >= param;
},
'Please enter at least {0} characters'
],
Expand Down

0 comments on commit 125116e

Please sign in to comment.