Skip to content

Commit

Permalink
fixed validation after 1592cf6 [Closes #268]
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 10, 2021
1 parent d4fc980 commit c8b7f41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Forms/Controls/TextBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function addRule($validator, $errorMessage = null, $arg = null)
{
foreach ($this->getRules() as $rule) {
if (!$rule->canExport() && !$rule->branch) {
return $this;
return parent::addRule($validator, $errorMessage, $arg);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Forms/Controls/TextInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function addRule($validator, $errorMessage = null, $arg = null)
{
foreach ($this->getRules() as $rule) {
if (!$rule->canExport() && !$rule->branch) {
return $this;
return parent::addRule($validator, $errorMessage, $arg);
}
}

Expand Down

0 comments on commit c8b7f41

Please sign in to comment.