Skip to content

Commit 66c1d8a

Browse files
authored
Merge pull request #1632 from nowackipawel/patch-31
DBGroup should be passed to ->run instead of ->setRules
2 parents b5b4ad3 + 86ac79d commit 66c1d8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/Model.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,8 +1266,8 @@ public function validate($data): bool
12661266
// the value found in $data, if exists.
12671267
$rules = $this->fillPlaceholders($this->validationRules, $data);
12681268

1269-
$this->validation->setRules($rules, $this->validationMessages, $this->DBGroup);
1270-
$valid = $this->validation->run($data);
1269+
$this->validation->setRules($rules, $this->validationMessages);
1270+
$valid = $this->validation->run($data, null, $this->DBGroup);
12711271
}
12721272

12731273
return (bool) $valid;

0 commit comments

Comments
 (0)