MantisBT - v3.0 Release
View Issue Details
0001158v3.0 Release[All Projects] Generalpublic2012-07-02 08:062013-08-28 11:18
Assigned Tocaseydk 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version3.0.0 
Summary0001158: email not sent for task reminder, bug fix 2.
DescriptionTask Reminder:
Queue Generation and processing works in 3.x but email is not generated/sent due to code bug:

in tasks\tasks.clss.php

public function remind($module, $type, $id, $owner, &$args) {
// contacts detemination does not work properly within getAssigned()
// $contacts = $this->getAssigned();
//----instead of: take code from w2p 2.3.1 -----------------------------------------
       // Grab the assignee list
       $q = new w2p_Database_Query;
        $q->addTable('user_tasks', 'ut');
        $q->addJoin('users', 'u', 'u.user_id = ut.user_id', 'inner');
        $q->addJoin('contacts', 'c', 'c.contact_id = u.user_contact', 'inner');
        $q->addQuery('c.contact_id, contact_first_name, contact_last_name, contact_email');
        $q->addWhere('ut.task_id = ' . (int)$id);
        $contacts = $q->loadHashList('contact_id');

Additional Information- w2p 2.3.1 dont use getAssigned()
- w2p 2.4, w2p 3.x use this function
- propably getAssigned() is called by others, so I didnt change the function itself.
- I know that other users run w2p 2.4 without this change and it works as well, that I dont understand, however with this modification it works safe.

TagsNo tags attached.
related to 0001156closed caseydk Pending Requests email not sent for task reminder, bug fix 
Attached Files

2012-09-17 21:16   
Specific patch:

Issue History
2012-07-02 08:06project_managerNew Issue
2012-07-29 10:14caseydkRelationship addedrelated to 0001156
2012-08-07 21:10caseydkStatusnew => assigned
2012-08-07 21:10caseydkAssigned To => caseydk
2012-09-17 21:16caseydkNote Added: 0002653
2012-09-17 21:16caseydkStatusassigned => resolved
2012-09-17 21:16caseydkResolutionopen => fixed
2013-08-28 11:14caseydkFixed in Version => 3.0.0
2013-08-28 11:18caseydkStatusresolved => closed