mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
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:
parent
8fb81879c1
commit
001c382c51
3
Makefile
3
Makefile
@ -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; \
|
||||
|
||||
@ -241,7 +241,6 @@
|
||||
</address>
|
||||
<interface type="InterfaceField">
|
||||
<Required>N</Required>
|
||||
<Multiple>N</Multiple>
|
||||
<AddParentDevices>Y</AddParentDevices>
|
||||
<filters>
|
||||
<enable>/^(?!0).*$/</enable>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user