From fa9964cd78a4ada44267ec83e6c74a830a9634a9 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 12 Mar 2018 10:57:53 +0100 Subject: [PATCH] [module.ue] PUT pass 'defaultFormation' as it (NULL: ignore, -1: unset, *: set) --- build/api/module/ueController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/api/module/ueController.php b/build/api/module/ueController.php index e29430a..66da246 100644 --- a/build/api/module/ueController.php +++ b/build/api/module/ueController.php @@ -132,7 +132,7 @@ class ueController{ * @volumeTD [OPT] The UE required volume of TD * @volumeTP [OPT] The UE required volume of TP * @disabled [OPT] If it is disabled - * @defaultFormation [OPT] If there is a foreign key for a default formation (if only one formation) + * @defaultFormation [OPT] default formation for this UE (-1 to unset, NULL to ignore) * * @return updated Whether it has been updated * @@ -145,7 +145,7 @@ class ueController{ $volumeTD = 0; $volumeTP = 0; $disabled = true; - $defaultFormation = -1; + $defaultFormation = null; extract($args); /* Get the ue repo */ @@ -161,7 +161,7 @@ class ueController{ $volumeTD, $volumeTP, $disabled, - is_int($defaultFormation) && $defaultFormation < 0 ? null : $defaultFormation + $defaultFormation )]; }