@@ -243,7 +243,7 @@ public function save()
243243 __ ('Please provide a name for this bookmarked search. ' )
244244 );
245245 $ response = Response::getInstance ();
246- $ response ->isSuccess ($ message ->isSuccess ());
246+ $ response ->setRequestStatus ($ message ->isSuccess ());
247247 $ response ->addJSON ('fieldWithError ' , 'searchName ' );
248248 $ response ->addJSON ('message ' , $ message );
249249 exit ;
@@ -258,7 +258,7 @@ public function save()
258258 __ ('Missing information to save the bookmarked search. ' )
259259 );
260260 $ response = Response::getInstance ();
261- $ response ->isSuccess ($ message ->isSuccess ());
261+ $ response ->setRequestStatus ($ message ->isSuccess ());
262262 $ response ->addJSON ('message ' , $ message );
263263 exit ;
264264 }
@@ -280,7 +280,7 @@ public function save()
280280 __ ('An entry with this name already exists. ' )
281281 );
282282 $ response = Response::getInstance ();
283- $ response ->isSuccess ($ message ->isSuccess ());
283+ $ response ->setRequestStatus ($ message ->isSuccess ());
284284 $ response ->addJSON ('fieldWithError ' , 'searchName ' );
285285 $ response ->addJSON ('message ' , $ message );
286286 exit ;
@@ -317,7 +317,7 @@ public function save()
317317 __ ('An entry with this name already exists. ' )
318318 );
319319 $ response = Response::getInstance ();
320- $ response ->isSuccess ($ message ->isSuccess ());
320+ $ response ->setRequestStatus ($ message ->isSuccess ());
321321 $ response ->addJSON ('fieldWithError ' , 'searchName ' );
322322 $ response ->addJSON ('message ' , $ message );
323323 exit ;
@@ -344,7 +344,7 @@ public function delete()
344344 __ ('Missing information to delete the search. ' )
345345 );
346346 $ response = Response::getInstance ();
347- $ response ->isSuccess ($ message ->isSuccess ());
347+ $ response ->setRequestStatus ($ message ->isSuccess ());
348348 $ response ->addJSON ('fieldWithError ' , 'searchId ' );
349349 $ response ->addJSON ('message ' , $ message );
350350 exit ;
@@ -372,7 +372,7 @@ public function load()
372372 __ ('Missing information to load the search. ' )
373373 );
374374 $ response = Response::getInstance ();
375- $ response ->isSuccess ($ message ->isSuccess ());
375+ $ response ->setRequestStatus ($ message ->isSuccess ());
376376 $ response ->addJSON ('fieldWithError ' , 'searchId ' );
377377 $ response ->addJSON ('message ' , $ message );
378378 exit ;
@@ -390,7 +390,7 @@ public function load()
390390 if (false === ($ oneResult = $ GLOBALS ['dbi ' ]->fetchArray ($ resList ))) {
391391 $ message = Message::error (__ ('Error while loading the search. ' ));
392392 $ response = Response::getInstance ();
393- $ response ->isSuccess ($ message ->isSuccess ());
393+ $ response ->setRequestStatus ($ message ->isSuccess ());
394394 $ response ->addJSON ('fieldWithError ' , 'searchId ' );
395395 $ response ->addJSON ('message ' , $ message );
396396 exit ;
0 commit comments