* Fromfeedback and fromticket convert to opened.
This commit is contained in:
@@ -946,7 +946,7 @@ class reportModel extends model
|
||||
->where('t1.objectType')->eq($objectType)
|
||||
->andWhere('t2.deleted')->eq(0)
|
||||
->andWhere('LEFT(t1.date, 4)')->eq($year)
|
||||
->andWhere('t1.action')->in(array_keys($this->config->report->annualData['month'][$objectType]))
|
||||
->andWhere('t1.action')->in($this->config->report->annualData['monthAction'][$objectType])
|
||||
->beginIF($accounts)->andWhere('t1.actor')->in($accounts)->fi()
|
||||
->query();
|
||||
|
||||
@@ -958,6 +958,8 @@ class reportModel extends model
|
||||
$statuses[$action->objectID] = $action->status;
|
||||
|
||||
$lowerAction = strtolower($action->action);
|
||||
/* Story,bug can from feedback and ticket, task can from feedback, boil this action down to opened. */
|
||||
if(in_array($lowerAction, array('fromfeedback', 'fromticket'))) $lowerAction = 'opened';
|
||||
if(!isset($actionStat[$lowerAction]))
|
||||
{
|
||||
foreach($months as $month) $actionStat[$lowerAction][$month] = 0;
|
||||
|
||||
Reference in New Issue
Block a user