Skip to content

Commit

Permalink
Merge pull request #234 from kinglozzer/formfield-validation-extensions
Browse files Browse the repository at this point in the history
NEW: Add extension hooks for field-specific validation
  • Loading branch information
GuySartorelli authored Feb 22, 2023
2 parents 249842f + 8b8bd13 commit dd7481a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/StringTagField.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ protected function getTags($term)
*/
public function validate($validator)
{
return true;
return $this->extendValidationResult(true, $validator);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/TagField.php
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ protected function getTags($term)
*/
public function validate($validator)
{
return true;
return $this->extendValidationResult(true, $validator);
}

/**
Expand Down

0 comments on commit dd7481a

Please # to comment.