[Rt-commit] rt branch, 4.4/custom-date-ranges, updated. rt-4.4.1rc1-24-gfa6ce5c
Shawn Moore
shawn at bestpractical.com
Thu Jun 30 21:39:25 EDT 2016
The branch, 4.4/custom-date-ranges has been updated
via fa6ce5c5470552155369a7b5bdfac660303fd4c6 (commit)
from bff37580a6644821f3bde241323ebe10bd3ae34f (commit)
Summary of changes:
share/html/Elements/RT__Asset/ColumnMap | 10 ++++++++++
1 file changed, 10 insertions(+)
- Log -----------------------------------------------------------------
commit fa6ce5c5470552155369a7b5bdfac660303fd4c6
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Thu Jun 30 21:39:10 2016 -0400
Add Asset ColumnMap entries for CustomDateRanges
diff --git a/share/html/Elements/RT__Asset/ColumnMap b/share/html/Elements/RT__Asset/ColumnMap
index 618501d..6c8fb4c 100644
--- a/share/html/Elements/RT__Asset/ColumnMap
+++ b/share/html/Elements/RT__Asset/ColumnMap
@@ -112,6 +112,16 @@ my $COLUMN_MAP = {
}
},
};
+
+my %ranges = %{ RT->Config->Get('CustomDateRanges')->{'RT::Asset'} || {} };
+for my $name (keys %ranges) {
+ $COLUMN_MAP->{$name} = {
+ title => $name,
+ value => sub {
+ $_[0]->CustomDateRange($name, $ranges{$name});
+ },
+ };
+}
</%ONCE>
<%init>
$m->callback( COLUMN_MAP => $COLUMN_MAP, CallbackName => 'Once', CallbackOnce => 1 );
-----------------------------------------------------------------------
More information about the rt-commit
mailing list