mvc: one small change

Same goes for Required=N but since that is used 251 times it's
probably better to skip this.
This commit is contained in:
Franco Fichtner 2023-09-01 08:51:50 +02:00
parent 8fb81879c1
commit 001c382c51
2 changed files with 3 additions and 1 deletions

View File

@ -378,6 +378,9 @@ lint-model:
(xmllint $${MODEL} --xpath '//*[@type and not(@type="ArrayField") and BlankDesc and Multiple="Y"]' 2> /dev/null | grep '^<' || true) | while read LINE; do \
echo "$${MODEL}: $${LINE} blank description not applicable on multiple field"; \
done; \
(xmllint $${MODEL} --xpath '//*[@type and not(@type="ArrayField") and Multiple="N"]' 2> /dev/null | grep '^<' || true) | while read LINE; do \
echo "$${MODEL}: $${LINE} Multiple=N is the default"; \
done; \
(xmllint $${MODEL} --xpath '//*[@type and not(@type="ArrayField") and OptionValues[default[not(@value)] or multiple[not(@value)] or required[not(@value)]]]' 2> /dev/null | grep '^<' || true) | while read LINE; do \
echo "$${MODEL}: $${LINE} option element default/multiple/required without value attribute"; \
done; \

View File

@ -241,7 +241,6 @@
</address>
<interface type="InterfaceField">
<Required>N</Required>
<Multiple>N</Multiple>
<AddParentDevices>Y</AddParentDevices>
<filters>
<enable>/^(?!0).*$/</enable>