Skip to content

Commit 6ff41c9

Browse files
committed
fix: instances of validation rules are incremented each time run() is executed
1 parent f707fb2 commit 6ff41c9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

system/Validation/Validation.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ public function __construct($config, RendererInterface $view)
107107
$this->config = $config;
108108

109109
$this->view = $view;
110+
111+
$this->loadRuleSets();
110112
}
111113

112114
/**
@@ -127,7 +129,6 @@ public function run(?array $data = null, ?string $group = null, ?string $dbGroup
127129
// `DBGroup` is a reserved name. For is_unique and is_not_unique
128130
$data['DBGroup'] = $dbGroup;
129131

130-
$this->loadRuleSets();
131132
$this->loadRuleGroup($group);
132133

133134
// If no rules exist, we return false to ensure

0 commit comments

Comments
 (0)