Skip to content

Commit

Permalink
Removed "min_length" and "exact_length" from the list of rules that a…
Browse files Browse the repository at this point in the history
…re run on empty fields, fixes #2809
  • Loading branch information
Woody Gilk committed Apr 25, 2010
1 parent fcef399 commit d061359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/kohana/validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ public static function color($str)
protected $_labels = array();

// Rules that are executed even when the value is empty
protected $_empty_rules = array('not_empty', 'matches', 'min_length', 'exact_length');
protected $_empty_rules = array('not_empty', 'matches');

// Error list, field => rule
protected $_errors = array();
Expand Down

0 comments on commit d061359

Please sign in to comment.