diff options
author | Phil Davis <phil.davis@inf.org> | 2016-03-18 03:51:21 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-03-18 03:51:21 +0545 |
commit | 747142f99442fa9764967bc78f091e33278f46e5 (patch) | |
tree | d504b575f466d14372fc348308d66e7feee2ff0f /src | |
parent | b00bbc0b56413690eab7e0314ab8725cf583af71 (diff) | |
download | pfsense-747142f99442fa9764967bc78f091e33278f46e5.zip pfsense-747142f99442fa9764967bc78f091e33278f46e5.tar.gz |
Redmine #5994 Enhance test for PPP advanced defaults
If pppoe_monthly, pppoe_weekly, pppeo_daily or pppoe_hourly was already set, then when editing the PPP interface the advanced fields were not automagically displayed. They should be, because the user needs to see these settings if they are there.
Add these extra checks to the test makes the Advanced fields automagically open correctly in this case.
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/interfaces_ppps_edit.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/usr/local/www/interfaces_ppps_edit.php b/src/usr/local/www/interfaces_ppps_edit.php index a799cbd..02ff08e 100644 --- a/src/usr/local/www/interfaces_ppps_edit.php +++ b/src/usr/local/www/interfaces_ppps_edit.php @@ -1001,6 +1001,10 @@ events.push(function() { ($pconfig['pppoe_pr_preset_val'] == "") && (!$pconfig['ondemand']) && ($pconfig['idletimeout'] == "") && + (!$pconfig['pppoe_monthly']) && + (!$pconfig['pppoe_weekly']) && + (!$pconfig['pppoe_daily']) && + (!$pconfig['pppoe_hourly']) && (!$pconfig['vjcomp']) && (!$pconfig['tcpmssfix']) && (!$pconfig['shortseq']) && |