Skip to content
Snippets Groups Projects
Commit b0ed6987 authored by Alex Arnaud's avatar Alex Arnaud
Browse files

Merge branch...

Merge branch 'hotline#199220_nanook_public_comments_apres_lecture_le_commentaire_reste_en_non_lu' into 'master'

hotline#199220 : Fix changing message status when message is read

See merge request !4976
parents 6db0d24c 5b2f362c
Branches
Tags
1 merge request!4976hotline#199220 : Fix changing message status when message is read
Pipeline #32242 canceled with stage
in 7 minutes and 14 seconds
- correctif #199220 : Nanook public comments : après lecture le commentaire passe en non lu
\ No newline at end of file
...@@ -461,6 +461,6 @@ class Class_WebService_SIGB_Nanook_PatronInfoReader ...@@ -461,6 +461,6 @@ class Class_WebService_SIGB_Nanook_PatronInfoReader
public function endPublicCommentRead(string $data) : void { public function endPublicCommentRead(string $data) : void {
$this $this
->getEmprunteur() ->getEmprunteur()
->setPublicCommentRead(Class_Webservice_Sigb_Nanook_Service::ILS_COMMENT_NOT_READ != $data); ->setPublicCommentRead(Class_Webservice_Sigb_Nanook_Service::ILS_COMMENT_READ == $data);
} }
} }
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
class Class_Webservice_SIGB_Nanook_Service class Class_Webservice_SIGB_Nanook_Service
extends Class_WebService_SIGB_AbstractRESTService { extends Class_WebService_SIGB_AbstractRESTService {
const ILS_COMMENT_NOT_READ = '0'; const ILS_COMMENT_READ = '1';
protected protected
$_provide_suggest = false, $_provide_suggest = false,
...@@ -206,7 +206,7 @@ class Class_Webservice_SIGB_Nanook_Service ...@@ -206,7 +206,7 @@ class Class_Webservice_SIGB_Nanook_Service
$post_params['favoriteSendingChannel'] = $emprunteur->favoriteSendingChannel(); $post_params['favoriteSendingChannel'] = $emprunteur->favoriteSendingChannel();
if ($emprunteur->getPublicComment() && $emprunteur->hasUnreadPublicComment() == false) if ($emprunteur->getPublicComment() && $emprunteur->hasUnreadPublicComment() == false)
$post_params['publicCommentRead'] = static::ILS_COMMENT_NOT_READ; $post_params['publicCommentRead'] = static::ILS_COMMENT_READ;
$xml = $this->getWebClient() $xml = $this->getWebClient()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment