mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
Firewall/alias, regression in toggle, closes https://github.com/opnsense/core/issues/2759
This commit is contained in:
parent
ce98b297fa
commit
8b79dd1672
@ -143,14 +143,14 @@ class AliasController extends ApiMutableModelControllerBase
|
||||
/**
|
||||
* toggle status
|
||||
* @param string $uuid id to toggled
|
||||
* @param string|null $disabled set disabled by default
|
||||
* @param string|null $enabled set enabled by default
|
||||
* @return array status
|
||||
* @throws \Phalcon\Validation\Exception when field validations fail
|
||||
* @throws \ReflectionException when not bound to model
|
||||
*/
|
||||
public function toggleItemAction($uuid, $disabled = null)
|
||||
public function toggleItemAction($uuid, $enabled = null)
|
||||
{
|
||||
return $this->toggleBase("aliases.aliases", $uuid);
|
||||
return $this->toggleBase("aliases.alias", $uuid, $enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user