diff --git a/extensions/tags/src/Listener/SaveTagsToDatabase.php b/extensions/tags/src/Listener/SaveTagsToDatabase.php index bd4b48fbdc..d127400955 100755 --- a/extensions/tags/src/Listener/SaveTagsToDatabase.php +++ b/extensions/tags/src/Listener/SaveTagsToDatabase.php @@ -36,7 +36,6 @@ class SaveTagsToDatabase */ protected $translator; - /** * @var TagCountValidator */ @@ -149,8 +148,7 @@ protected function validateTagCount($type, $count) // $this->tagCountValidator->setCount($count); $this->tagCountValidator->assertValid([$key => $count]); - - + // $validator = $this->validator->make( // [$key => $count], // [$key => ['numeric', $min === $max ? "size:$min" : "between:$min,$max"]] diff --git a/extensions/tags/src/TagCountValidator.php b/extensions/tags/src/TagCountValidator.php index 8c30eb2e42..a0f1ef02de 100644 --- a/extensions/tags/src/TagCountValidator.php +++ b/extensions/tags/src/TagCountValidator.php @@ -1,5 +1,12 @@ [ 'numeric', 'size:'.$min, - 'between:'.$min,$max + 'between:'.$min, $max ] ]; }