diff --git a/VERSIONS_HOTLINE/87438 b/VERSIONS_HOTLINE/87438 new file mode 100644 index 0000000000000000000000000000000000000000..96e5e9a20896f0e9a3aa80c1a9e0a087ce09c528 --- /dev/null +++ b/VERSIONS_HOTLINE/87438 @@ -0,0 +1 @@ + - ticket #87438 : SIGB Nanook, suggestions d'achat : correction de la récupération de la liste des suggestions \ No newline at end of file diff --git a/library/Class/WebService/SIGB/Nanook/Service.php b/library/Class/WebService/SIGB/Nanook/Service.php index 616186c94f549ce454bb8e4f618efd37449f16e3..dbdbe200170507885d445ca6e27a06462622aaae 100644 --- a/library/Class/WebService/SIGB/Nanook/Service.php +++ b/library/Class/WebService/SIGB/Nanook/Service.php @@ -332,9 +332,6 @@ class Class_Webservice_SIGB_Nanook_Service extends Class_WebService_SIGB_Abstrac public function suggestionsOf($user) { - if (!$this->ilsdiAuthenticatePatron($user)) - return $this->_error($this->_('Échec de l\'authentification par le webservice')); - return $this->getSuggestionsFromilsdiPatronInfo(['patronId' => $user->getIdSigb()], Class_WebService_SIGB_Nanook_PatronInfoReader::newInstance()); diff --git a/tests/application/modules/opac/controllers/AbonneControllerSuggestionAchatNanookTest.php b/tests/application/modules/opac/controllers/AbonneControllerSuggestionAchatNanookTest.php index d2f908e942357a1ad67776f3c82db406084cea83..038a8401a471ab30c108939e53e81cfa7c503944 100644 --- a/tests/application/modules/opac/controllers/AbonneControllerSuggestionAchatNanookTest.php +++ b/tests/application/modules/opac/controllers/AbonneControllerSuggestionAchatNanookTest.php @@ -66,10 +66,6 @@ abstract class AbstractAbonneControllerSuggestionAchatNanookTestCase extends Abs $this->mock_web_client = $this->mock(); $this->mock_web_client - ->whenCalled('open_url') - ->with('http://nanookService/service/AuthenticatePatron/username/francis/password/test') - ->answers(NanookFixtures::albatorAuthenticatePatronResponse()) - ->whenCalled('open_url') ->with('http://nanookService/service/GetPatronInfo/patronId/187') ->answers(NanookFixtures::albatorPatronInfoResponse())