Skip to content

Commit 960253e

Browse files
committed
#68 add append option to analytics
1 parent 34f2297 commit 960253e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Diff for: Analytics/CustomFieldAnalytics.php

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public function build_norange($project_id)
4040
$metrics[] = array(
4141
'column_title' => $field['human_name'],
4242
'nb_tasks' => $field_total,
43+
'append' => $field['options'],
4344
);
4445
}
4546

@@ -83,6 +84,7 @@ public function build_range($project_id, $from, $to)
8384
$metrics[] = array(
8485
'column_title' => $field['human_name'],
8586
'nb_tasks' => $field_total,
87+
'append' => $field['options'],
8688
);
8789
}
8890

Diff for: Template/analytic/custom_field_totals.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<?= $this->text->e($metric['column_title']) ?>
2424
</td>
2525
<td>
26-
<?= $metric['nb_tasks'] ?>
26+
<?= $metric['append'].$metric['nb_tasks'] ?>
2727
</td>
2828
<td>
2929
<?= n($metric['percentage']) ?>%

Diff for: Template/analytic/custom_field_totals_range.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<?= $this->text->e($metric['column_title']) ?>
3636
</td>
3737
<td>
38-
<?= $metric['nb_tasks'] ?>
38+
<?= $metric['append'].$metric['nb_tasks'] ?>
3939
</td>
4040
<td>
4141
<?= n($metric['percentage']) ?>%

0 commit comments

Comments
 (0)