luci-mod-network: fix unsetting network.device options
The existing logic only handled removing the last remaining device section
option (which results in the deletion of the entire section) but failed to
actually unset single options.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit b9fad85f2e
)
This commit is contained in:
parent
216ddcce71
commit
8c2ea08aa8
1 changed files with 2 additions and 0 deletions
|
@ -158,6 +158,8 @@ function deviceRemove(section_id) {
|
|||
|
||||
if (empty)
|
||||
uci.remove('network', ds);
|
||||
else
|
||||
uci.unset('network', ds, this.option);
|
||||
}
|
||||
|
||||
uci.unset('network', section_id, this.option);
|
||||
|
|
Loading…
Reference in a new issue