From 9ea230bb0a8ac48a11501ff76ba8cc24b8eedca7 Mon Sep 17 00:00:00 2001 From: aKorczak Date: Thu, 14 Jun 2012 08:59:03 +0000 Subject: [PATCH] [-] WS : Fix id_shop to not being mandatory git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16014 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/webservice/WebserviceRequest.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/classes/webservice/WebserviceRequest.php b/classes/webservice/WebserviceRequest.php index a65c90d84..d079a1535 100644 --- a/classes/webservice/WebserviceRequest.php +++ b/classes/webservice/WebserviceRequest.php @@ -777,8 +777,12 @@ class WebserviceRequestCore return true; } } - - $this->setError(404, 'This shop id doesn\'t exist', 129); + else + { + self::$shopIDs[] = Context::getContext()->shop->id; + return true; + } + $this->setError(404, 'This shop id does not exist', 999); return false; }