mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Properly clear the qlimit or tbrconfig settings when a value is deleted from GUI
This commit is contained in:
parent
56a10568e8
commit
06f3e44788
@ -333,6 +333,8 @@ class altq_root_queue {
|
||||
function ReadConfig(&$conf) {
|
||||
if (isset($conf['tbrconfig']))
|
||||
$this->SetTbrConfig($conf['tbrconfig']);
|
||||
else
|
||||
$this->SetTbrConfig($conf['tbrconfig']);
|
||||
$this->SetBandwidth($conf['bandwidth']);
|
||||
if ($conf['bandwidthtype'] <> "")
|
||||
$this->SetBwscale($conf['bandwidthtype']);
|
||||
@ -347,6 +349,8 @@ class altq_root_queue {
|
||||
}
|
||||
if (isset($conf['qlimit']) && $conf['qlimit'] <> "")
|
||||
$this->SetQlimit($conf['qlimit']);
|
||||
else
|
||||
$this->SetQlimit("");
|
||||
if (isset($conf['name']))
|
||||
$this->SetQname($conf['name']);
|
||||
if (!empty($conf['enabled']))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user