- Fixed: In lost password reset emails, the subject would appear as "Array['trackertitle']" because the variable was not enclosed in curly braces
- Fixed: On PHP4 systems, a bug in the BugAPI would prevent any data from being saved because PHP4 doesn't support call_user_func() of parent:: selectors
- Change: When clicking the "[Run Search]" link in the "Saved Searches" section of the "Options" tab, force the search to rerun
+- Fixed: Some email roles would not get notified under certain circumstances because the list of users to notify was reset
1.2.0 Beta 2
===============================
$this->roles['-notapplicable-'] = (sizeof($modified) > 0 ? array($original['assignedto'], $modified['assignedto']) : array($original['assignedto']));
$this->roles['reporter'] = array($original['userid']);
- $this->roles['assignee'] = (sizeof($modified) > 0 ? array($modified['assignedto']) : array($original['assignedto']));
+ $this->roles['assignee'][] = (sizeof($modified) > 0 ? $modified['assignedto'] : $original['assignedto']);
$this->fetch_user_cache();
}
*/
function fetch_user_cache()
{
- // reset all the data each time we do this, just in case it changes within the lifespan of the object
- $this->users = array();
- foreach ($this->roles AS $role => $users)
- {
- $this->roles["$role"] = array();
- }
-
$newbuggers = $this->registry->db->query("SELECT userid FROM " . TABLE_PREFIX . "useremail WHERE relation = " . $this->registry->emailoptions['relations']['-notapplicable-'] . " AND mask & " . $this->registry->emailoptions['notifications']['newbug']);
while ($newbug = $this->registry->db->fetch_array($newbuggers))
{