diff --git a/VERSIONS_HOTLINE/199220 b/VERSIONS_HOTLINE/199220 new file mode 100644 index 0000000000000000000000000000000000000000..d45a918c4e7740db9594b88ca178d31c0641ae7b --- /dev/null +++ b/VERSIONS_HOTLINE/199220 @@ -0,0 +1 @@ + - correctif #199220 : Nanook public comments : après lecture le commentaire passe en non lu \ No newline at end of file diff --git a/library/Class/WebService/SIGB/Nanook/PatronInfoReader.php b/library/Class/WebService/SIGB/Nanook/PatronInfoReader.php index 73b6628d89a21ceb526091a2267139cab76e631c..ec38204d30fad367408670eca3b549be100f85b6 100644 --- a/library/Class/WebService/SIGB/Nanook/PatronInfoReader.php +++ b/library/Class/WebService/SIGB/Nanook/PatronInfoReader.php @@ -461,6 +461,6 @@ class Class_WebService_SIGB_Nanook_PatronInfoReader public function endPublicCommentRead(string $data) : void { $this ->getEmprunteur() - ->setPublicCommentRead(Class_Webservice_Sigb_Nanook_Service::ILS_COMMENT_NOT_READ != $data); + ->setPublicCommentRead(Class_Webservice_Sigb_Nanook_Service::ILS_COMMENT_READ == $data); } } diff --git a/library/Class/WebService/SIGB/Nanook/Service.php b/library/Class/WebService/SIGB/Nanook/Service.php index 5862c78bba673531daf10dc575247a950af77b57..cc51b12be07799fa3fa53a9f2def1d6bb8ae4a0b 100644 --- a/library/Class/WebService/SIGB/Nanook/Service.php +++ b/library/Class/WebService/SIGB/Nanook/Service.php @@ -23,7 +23,7 @@ class Class_Webservice_SIGB_Nanook_Service extends Class_WebService_SIGB_AbstractRESTService { - const ILS_COMMENT_NOT_READ = '0'; + const ILS_COMMENT_READ = '1'; protected $_provide_suggest = false, @@ -206,7 +206,7 @@ class Class_Webservice_SIGB_Nanook_Service $post_params['favoriteSendingChannel'] = $emprunteur->favoriteSendingChannel(); if ($emprunteur->getPublicComment() && $emprunteur->hasUnreadPublicComment() == false) - $post_params['publicCommentRead'] = static::ILS_COMMENT_NOT_READ; + $post_params['publicCommentRead'] = static::ILS_COMMENT_READ; $xml = $this->getWebClient()