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 )]; }