Fixed bug in model validation translate #628

merged 1 commit into from Apr 27, 2012


None yet

2 participants

tigrang commented Apr 27, 2012

Validation rules like:

'name' => array(
    'rule' => array('multiple', array('min' => 1, 'max' => 7)),
    'message' => 'The course must meet one day, right?',

would throw a warning because it would try to translate array('min' => 1, 'max' => 7) so I added a check to see if the arg was a string first.

@ADmad ADmad merged commit 9a693f9 into cakephp:2.2 Apr 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment