Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe Commits: fc84cb80 by tchemit at 2019-07-23T13:08:19Z [LL][LOGBOOKS] Plage de taille d'un échantillon - Closes #1365 - - - - - 2 changed files: - validation/src/main/resources/fr/ird/observe/dto/data/ll/logbook/SamplePartLogbookDto-update-error-validation.xml - validation/src/main/resources/fr/ird/observe/dto/data/ll/logbook/SamplePartLogbookDto-update-warning-validation.xml Changes: ===================================== validation/src/main/resources/fr/ird/observe/dto/data/ll/logbook/SamplePartLogbookDto-update-error-validation.xml ===================================== @@ -74,6 +74,16 @@ <message>observe.validation.targetLength.positive.length</message> </field-validator> + <!-- validation de la taille par borne --> + <field-validator type="species_lengthDto"> + <param name="ratio">1.0</param> + <param name="enable">true</param> + <param name="expression"> + <![CDATA[ species != null && length != null ]]> + </param> + <message>observe.validation.targetLength.bound.length##${min}##${max}</message> + </field-validator> + </field> <field name="weight"> ===================================== validation/src/main/resources/fr/ird/observe/dto/data/ll/logbook/SamplePartLogbookDto-update-warning-validation.xml ===================================== @@ -23,22 +23,7 @@ "-//Apache Struts//XWork Validator 1.0.3//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd"> <validators> - - <field name="length"> - - <!-- validation de la taille par borne --> - <field-validator type="species_lengthDto"> - <param name="ratio">1.0</param> - <param name="enable">true</param> - <param name="expression"> - <![CDATA[ species != null && length != null ]]> - </param> - <message>observe.validation.targetLength.bound.length##${min}##${max}</message> - </field-validator> - - </field> - - + <field name="weight"> <!-- validation du weight par borne (uniquement pour mode saisie par individus) --> View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/fc84cb804ccf4aeba63ebfe45150... -- View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/fc84cb804ccf4aeba63ebfe45150... You're receiving this email because of your account on gitlab.com.