fix api.ue.cours + api.ue.tp to return 'formations' id list

This commit is contained in:
xdrm-brackets 2018-05-08 14:48:48 +02:00
parent 4e1ca634ff
commit 465fde053b
2 changed files with 2 additions and 3 deletions

View File

@ -57,8 +57,7 @@ class coursController{
if( is_null($created_id) || !is_int($created_id) ) if( is_null($created_id) || !is_int($created_id) )
return ['error' => new Error(Err::RepoError)]; return ['error' => new Error(Err::RepoError)];
return ['created_id' => $created_id, 'formations' => $formations];
return ['created_id' => $created_id];
} }

View File

@ -57,7 +57,7 @@ class tpController{
if( is_null($created_id) || !is_int($created_id) ) if( is_null($created_id) || !is_int($created_id) )
return ['error' => new Error(Err::RepoError)]; return ['error' => new Error(Err::RepoError)];
return ['created_id' => $created_id]; return ['created_id' => $created_id, 'formations' => $formations];
} }