From 465fde053bc69cc77ee927f7fd1494f9b40759d3 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 8 May 2018 14:48:48 +0200 Subject: [PATCH] fix api.ue.cours + api.ue.tp to return 'formations' id list --- build/api/module/ue/coursController.php | 3 +-- build/api/module/ue/tpController.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/build/api/module/ue/coursController.php b/build/api/module/ue/coursController.php index 198a237..72acc39 100644 --- a/build/api/module/ue/coursController.php +++ b/build/api/module/ue/coursController.php @@ -57,8 +57,7 @@ class coursController{ if( is_null($created_id) || !is_int($created_id) ) return ['error' => new Error(Err::RepoError)]; - - return ['created_id' => $created_id]; + return ['created_id' => $created_id, 'formations' => $formations]; } diff --git a/build/api/module/ue/tpController.php b/build/api/module/ue/tpController.php index dc36c81..51a4a42 100644 --- a/build/api/module/ue/tpController.php +++ b/build/api/module/ue/tpController.php @@ -57,7 +57,7 @@ class tpController{ if( is_null($created_id) || !is_int($created_id) ) return ['error' => new Error(Err::RepoError)]; - return ['created_id' => $created_id]; + return ['created_id' => $created_id, 'formations' => $formations]; }