[module.ue] POST now default value for 'defaultFormation' is int = -1 (type is INT btw)

This commit is contained in:
xdrm-brackets 2018-03-12 10:43:08 +01:00
parent 1aab7b61bd
commit 6601880436
2 changed files with 12 additions and 12 deletions

View File

@ -64,7 +64,7 @@ class ueController{
$volumeTD = 0;
$volumeTP = 0;
$disabled = true;
$defaultFormation = null;
$defaultFormation = -1;
extract($args);
/* Get the ue repo */
@ -87,7 +87,7 @@ class ueController{
$volumeTD,
$volumeTP,
$disabled,
$defaultFormation
is_int($defaultFormation) && $defaultFormation < 0 ? null : $defaultFormation
);
@ -145,7 +145,7 @@ class ueController{
$volumeTD = 0;
$volumeTP = 0;
$disabled = true;
$defaultFormation = null;
$defaultFormation = -1;
extract($args);
/* Get the ue repo */
@ -161,7 +161,7 @@ class ueController{
$volumeTD,
$volumeTP,
$disabled,
$defaultFormation < 0 ? null : $defaultFormation
is_int($defaultFormation) && $defaultFormation < 0 ? null : $defaultFormation
)];
}

View File

@ -192,7 +192,7 @@
"volumeTD": { "des": "Number of TD hours for UE", "typ": "float" },
"volumeTP": { "des": "Number of TP hours for UE", "typ": "float" },
"disabled": { "des": "Whether UE is disabled", "typ": "boolean" },
"defaultFormation": { "des": "UID for optional default formation", "typ": "id", "opt": true }
"defaultFormation": { "des": "UID for optional default formation (-1 if none)", "typ": "int", "opt": true, "def": -1 }
},
"out": {
"created_code": { "des": "Created UE code", "typ": "varchar(4,20,alphanumeric)" }