[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
|
* @volumeTD<float> [OPT] The UE required volume of TD
|
||||||
* @volumeTP<float> [OPT] The UE required volume of TP
|
* @volumeTP<float> [OPT] The UE required volume of TP
|
||||||
* @disabled<bool> [OPT] If it is disabled
|
* @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
|
* @return updated<bool> Whether it has been updated
|
||||||
*
|
*
|
||||||
|
@ -145,7 +145,7 @@ class ueController{
|
||||||
$volumeTD = 0;
|
$volumeTD = 0;
|
||||||
$volumeTP = 0;
|
$volumeTP = 0;
|
||||||
$disabled = true;
|
$disabled = true;
|
||||||
$defaultFormation = -1;
|
$defaultFormation = null;
|
||||||
extract($args);
|
extract($args);
|
||||||
|
|
||||||
/* Get the ue repo */
|
/* Get the ue repo */
|
||||||
|
@ -161,7 +161,7 @@ class ueController{
|
||||||
$volumeTD,
|
$volumeTD,
|
||||||
$volumeTP,
|
$volumeTP,
|
||||||
$disabled,
|
$disabled,
|
||||||
is_int($defaultFormation) && $defaultFormation < 0 ? null : $defaultFormation
|
$defaultFormation
|
||||||
)];
|
)];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue