Skip to content

Commit

Permalink
ISSUE#9920 MAGETWO-75838 Fix in stripped min lenght validation when v…
Browse files Browse the repository at this point in the history
…alue has special characters using alignment with implementation of min_text_length
  • Loading branch information
Rubén Rodríguez committed Sep 29, 2017
1 parent 6e5c8f0 commit 6be8769
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ define([
],
'stripped-min-length': [
function (value, param) {
return value.length >= param;
return _.isUndefined(value) || value.length === 0 || utils.stripHtml(value).length >= param;
},
$.mage.__('Please enter at least {0} characters')
],
Expand Down

0 comments on commit 6be8769

Please sign in to comment.