From 8b79dd16724b254723e19810069669c3651a6945 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Tue, 2 Oct 2018 20:28:24 +0200 Subject: [PATCH] Firewall/alias, regression in toggle, closes https://github.com/opnsense/core/issues/2759 --- .../controllers/OPNsense/Firewall/Api/AliasController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } /**