Interfaces: Other Types: VLAN - missing a config lock on delete, preventing multiple delete to function properly

This commit is contained in:
Ad Schellevis 2023-02-09 13:21:24 +01:00
parent 63bac3c6ca
commit 6d33df1bb9

View File

@ -159,6 +159,7 @@ class VlanSettingsController extends ApiMutableModelControllerBase
public function delItemAction($uuid)
{
Config::getInstance()->lock();
$node = $this->getModel()->getNodeByReference('vlan.' . $uuid);
$old_vlanif = $node != null ? (string)$node->vlanif : null;
$children = 0;