From 21570a7328c4a956b97c2999fa33c6d0246e7d3f Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 13 Oct 2017 19:07:31 +0200 Subject: [PATCH] Added 'saved': 0 by default if fetchDefault::dispatch error in dispatched method --- build/api/module/fetchDefault.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/api/module/fetchDefault.php b/build/api/module/fetchDefault.php index c5b976b..56dc1ea 100644 --- a/build/api/module/fetchDefault.php +++ b/build/api/module/fetchDefault.php @@ -57,7 +57,7 @@ /* (4) Gestion erreur */ if( $response->error->get() != Err::Success ) - return ['error' => new Error(Err::ModuleError)]; + return [ 'saved' => 0 ]; /* (5) Remontée du résultat */ return [