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

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

parent 219470df
Branches
Tags
1 merge request!4976hotline#199220 : Fix changing message status when message is read
Pipeline #32235 passed with stage
in 26 minutes and 38 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
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);
}
}
......@@ -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()
......
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