[module.ue] PUT pass 'defaultFormation' as it (NULL: ignore, -1: unset, *: set)
This commit is contained in:
parent
6de03a80e3
commit
fa9964cd78
|
@ -132,7 +132,7 @@ class ueController{
|
|||
* @volumeTD<float> [OPT] The UE required volume of TD
|
||||
* @volumeTP<float> [OPT] The UE required volume of TP
|
||||
* @disabled<bool> [OPT] If it is disabled
|
||||
* @defaultFormation<int> [OPT] If there is a foreign key for a default formation (if only one formation)
|
||||
* @defaultFormation<int> [OPT] default formation for this UE (-1 to unset, NULL to ignore)
|
||||
*
|
||||
* @return updated<bool> 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
|
||||
)];
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue