When a Validate rule fails, the value must be removed from the $params list, thanks biakaveron
This commit is contained in:
parent
3527dad3b2
commit
0009c72d12
|
@ -763,11 +763,8 @@ class Kohana_Validate extends ArrayObject {
|
|||
$rule = 'default';
|
||||
}
|
||||
|
||||
if (is_array($params))
|
||||
{
|
||||
// Make a text list of the parameters
|
||||
$params = implode(', ', $params);
|
||||
}
|
||||
// Make a text list of the parameters without the value
|
||||
$params = implode(', ', array_slice($params, 1));
|
||||
|
||||
// Translate the field name
|
||||
$field = __($this->labels[$field]);
|
||||
|
|
Loading…
Reference in a new issue