diff options
author | Phil Davis <phil.davis@inf.org> | 2016-01-18 18:58:14 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-01-18 18:58:14 +0545 |
commit | c0f84f133a468c6e1f49a86c7cf85a096defc550 (patch) | |
tree | 86f3d38d621c89a766aac1275b5490cec4a3993c /src | |
parent | 9c1c99b77d3f6b8daccb7c727340e9960b099d71 (diff) | |
download | pfsense-c0f84f133a468c6e1f49a86c7cf85a096defc550.zip pfsense-c0f84f133a468c6e1f49a86c7cf85a096defc550.tar.gz |
Display existing updatefreq
when user is editing an alias type that uses the subnet CIDR field as the URL table update frequency.
Forum: https://forum.pfsense.org/index.php?topic=105457.0
Diffstat (limited to 'src')
-rwxr-xr-x | src/usr/local/www/firewall_aliases_edit.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/usr/local/www/firewall_aliases_edit.php b/src/usr/local/www/firewall_aliases_edit.php index c6d7372..a83b5d9 100755 --- a/src/usr/local/www/firewall_aliases_edit.php +++ b/src/usr/local/www/firewall_aliases_edit.php @@ -702,7 +702,13 @@ while ($counter < count($addresses)) { list($address, $address_subnet) = explode("/", $addresses[$counter]); } else { $address = $addresses[$counter]; - $address_subnet = ""; + if (isset($pconfig['updatefreq'])) { + // Note: There is only 1 updatefreq possible. + // The alias types that use updatefreq only allow a single entry. + $address_subnet = $pconfig['updatefreq']; + } else { + $address_subnet = ""; + } } $group = new Form_Group($counter == 0 ? $label_str[$tab]:''); |