diff --git a/src/opnsense/mvc/app/controllers/OPNsense/Firewall/Api/AliasController.php b/src/opnsense/mvc/app/controllers/OPNsense/Firewall/Api/AliasController.php index 9e155ce22..b494aebf3 100644 --- a/src/opnsense/mvc/app/controllers/OPNsense/Firewall/Api/AliasController.php +++ b/src/opnsense/mvc/app/controllers/OPNsense/Firewall/Api/AliasController.php @@ -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); } /**