Permalink
Browse files

Made a simpler use of the comparison validation

  • Loading branch information...
1 parent 97a2f94 commit 526109ddf7b4e5cd41d928646c1e5721a950ee62 Dean Sofer committed Nov 15, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 models/behaviors/validate_default.php
@@ -149,6 +149,9 @@ function confirmFields(&$model, $check, $params = array()) {
'skip' => false
);
// Getting options
+ if (!isset($params['fields']) && !empty($params)) {
+ $params = array('fields' => $params);
+ }
extract(am($defaultParams, $params));
$fieldKey = array_pop(array_keys($check));
foreach ($fields as $field) {

0 comments on commit 526109d

Please sign in to comment.