Skip to content

Commit

Permalink
Merge pull request #422 from magento-folks/2.0.11_bugs_pr
Browse files Browse the repository at this point in the history
[Folks] Bugfix 2.0.11
- MAGETWO-58614 [Сheckout] Cannot checkout reordered products
  • Loading branch information
slavvka authored Sep 23, 2016
2 parents 7af4e4b + a5b7871 commit 7d0ed18
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/code/Magento/Ui/view/base/web/js/lib/validation/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
*/
define([
'./utils',
'underscore',
'jquery',
'jquery/validate',
'jquery/ui',
'mage/translate'
], function (utils, $) {
], function (utils, _, $) {
'use strict';

/**
Expand Down Expand Up @@ -47,13 +48,13 @@ define([
return {
"min_text_length": [
function (value, params) {
return value.length == 0 || value.length >= +params;
return _.isUndefined(value) || value.length == 0 || value.length >= +params;
},
$.mage.__('Please enter more or equal than {0} symbols.')
],
"max_text_length": [
function (value, params) {
return value.length <= +params;
return !_.isUndefined(value) && value.length <= +params;
},
$.mage.__('Please enter less or equal than {0} symbols.')
],
Expand Down

0 comments on commit 7d0ed18

Please sign in to comment.