Comments on private tasks should not generate notifications for clients.

Project:ProjectPier
Version:0.8.6-stable
Component:Code
Category:bug report
Priority:normal
Assigned:phpfreak
Status:closed - fixed
Description

Comments on private tasks should not generate notifications for clients.

#1
Assigned to:Visitor» phpfreak
Status:new» patch - code needs review

I guess this could do the trick:

File /application/models/notifier/Notifier.class.php

        if ($comment->isPrivate()) {

becomes

        if ($comment->isPrivate() || $comment->getObject()->isPrivate()) {
#2
#3

There are two occurrences of that line. Which one do you mean? (lines 261 or 396)

#4

We reviewed the code and decided that patching both of the locations was the best. One is only rarely used, but there didn't seem to be a reason to leave it unchanged. Patchfile attached.

AttachmentSize
2166.patch 967 bytes
#5
Status:patch - code needs review» closed - fixed

Added to 0.8.7

#8
Title:Comment on a private tasks notifies clients» Comments on private tasks should not generate notifications for clients.