Skip to content

Commit

Permalink
Merge pull request #1632 from nowackipawel/patch-31
Browse files Browse the repository at this point in the history
DBGroup should be passed to ->run instead of ->setRules
  • Loading branch information
lonnieezell authored Dec 30, 2018
2 parents b5b4ad3 + 86ac79d commit 66c1d8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1266,8 +1266,8 @@ public function validate($data): bool
// the value found in $data, if exists.
$rules = $this->fillPlaceholders($this->validationRules, $data);

$this->validation->setRules($rules, $this->validationMessages, $this->DBGroup);
$valid = $this->validation->run($data);
$this->validation->setRules($rules, $this->validationMessages);
$valid = $this->validation->run($data, null, $this->DBGroup);
}

return (bool) $valid;
Expand Down

0 comments on commit 66c1d8a

Please sign in to comment.