Skip to content

Commit

Permalink
Merge pull request #81 from jarekmajcher/2.x
Browse files Browse the repository at this point in the history
Allow content field to be empty.
  • Loading branch information
loevgaard authored Sep 23, 2024
2 parents a631fe3 + a86c308 commit 96ca91a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<field name="name" type="string"/>
<field name="slug" column="slug" type="string"/>
<field name="label" type="string"/>
<field name="content" type="text"/>
<field name="content" type="text" nullable="true"/>

<unique-constraints>
<unique-constraint columns="locale,slug" name="uniq_slug"/>
Expand Down
5 changes: 0 additions & 5 deletions src/Resources/config/validation/TermsTranslation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@
<option name="groups">setono_sylius_terms</option>
</constraint>
</property>
<property name="content">
<constraint name="NotBlank">
<option name="groups">setono_sylius_terms</option>
</constraint>
</property>
<constraint name="Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity">
<option name="fields">
<value>locale</value>
Expand Down

0 comments on commit 96ca91a

Please sign in to comment.