mvc: slightly improve replaceInputWithSelector() to support an empty placeholder, which should help for https://github.com/opnsense/core/pull/9158
This change uses a token for the single/manual input, in which case callers may use definitions like:
......
'networks' => [
'label' => gettext("Networks"),
'items' => [
'' => gettext('any'),
'(self)' => gettext("This Firewall")
]
]
.....
When empty is offered, "any" will be choosen in this case. In theory we could change the filter model as well as "any" has no functional meaning anyway, but for simplicty this only changes the javascript part.
bootgrid: Raise rowCount default to 50 as y-overflow handles this gracefully (#9162)
* bootgrid: Raise rowCount default to 50 as y-overflow handles this gracefully, ensure low initial rowcount for master detail grids, clean up some scattered rowcounts in views
bootgrid: Raise rowCount default to 50 as y-overflow handles this gracefully, ensure low initial rowcount for master detail grids, clean up some scattered rowcounts in views
mvc: BaseListField - always map values in getDescription() and prevent usage of getNodeOptions() when not needed which should be less work for the cpu.
If a leaf object wants to render its own description, it can still do so by overwriting getDescription(), the cases we have implemented just trust the data of the BaseListField at the moment anyway.
closes https://github.com/opnsense/core/issues/9127
(cherry picked from commit 5875c18758853a6f1eaf2941bf83b443442bb623)
vpn/ipsec: Add default value to make_before_break that retains original behavior before strongswan 6.0.0 (#9080)
Co-authored-by: Franco Fichtner <franco at opnsense.org>
(cherry picked from commit 2c0ad5833736f6136a7d7cd865f05dc18f2c4339)