Skip to content

Commit

Permalink
Removed: Validation to have at least one rule per callout
Browse files Browse the repository at this point in the history
  • Loading branch information
igormukhingmailcom committed Oct 10, 2019
1 parent 26bf70a commit 09a13e6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
10 changes: 0 additions & 10 deletions src/Resources/config/validation/Callout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,5 @@
</constraint>
</property>

<property name="rules">
<constraint name="Count">
<option name="min">1</option>
<option name="minMessage">setono_sylius_callout.callout.rules.min</option>
<option name="groups">
<value>setono_sylius_callout</value>
</option>
</constraint>
</property>

</class>
</constraint-mapping>
2 changes: 0 additions & 2 deletions src/Resources/translations/validators.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ setono_sylius_callout:
priority:
not_blank: Priority cannot be blank.
numeric: Priority must be an integer.
rules:
min: Specify at least one rule.
callout_translation:
text:
not_blank: Text cannot be blank.

0 comments on commit 09a13e6

Please sign in to comment.