Alias Edit does not display correctly
I had a 2.1-RELEASE system and GitSync'd to the 2.1 release branch. I was using Alias Bulk Import, but then also realised this problem is with displaying any Network Alias in firewall_aliases_edit.php
I added a test bulk alias, as in screen shot 1
After saving, the alias looks OK in screen shot 2.
But when I try to edit it (screen shot 3) the CIDR shows as 32 for all the entries.
If I edit and then save, all those entries also get saved as "/32".
If I edit and save any of my network aliases they become "/32" unless I manually change them to the required values again before saving.
When editing a URL Table alias, the Update Freq column is left blank (and the config actually has a number of days).
Using any version of firewall_aliases_edit.php after commit https://github.com/pfsense/pfsense/commit/53523624259f97fb7148d80ae581fa09291e0c55 has this problem. Any version prior to that is OK. Something in the new code there that does jQuery stuff has a problem setting/enabling the CIDR/Update Freq column.
Updated by Phillip Davis almost 8 years ago
I have no idea what I am doing with the jQuery stuff, but I pulled out some "^" marks in pull request https://github.com/pfsense/pfsense/pull/867 and now the display is correct. Someone who knows what the "^" were intended to do should look at it and decide what is the real/correct/best fix.
Updated by Grischa Zengel almost 8 years ago
With this patch the subnet field won't be disabled like before.
The form uses <select name="address_subnet0" class="ipv4v6" id="address_subnet0" size="1"> with numbered ids.
jQuery("select[id^='address_subnet']") will match "address_subnet.*". http://api.jquery.com/attribute-equals-selector/
jQuery("select[id='address_subnet']") will only match "address_subnet". http://api.jquery.com/attribute-starts-with-selector/