X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FRT__SavedSearch%2FColumnMap;h=82f533e999e4fc0bd9143e10566ddf399b77e577;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=780ee838ae302d5329795d745cb2d36903dcb214;hpb=b5c4237a34aef94976bc343c8d9e138664fc3984;p=freeside.git diff --git a/rt/share/html/Elements/RT__SavedSearch/ColumnMap b/rt/share/html/Elements/RT__SavedSearch/ColumnMap index 780ee838a..82f533e99 100644 --- a/rt/share/html/Elements/RT__SavedSearch/ColumnMap +++ b/rt/share/html/Elements/RT__SavedSearch/ColumnMap @@ -2,8 +2,8 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2010 Best Practical Solutions, LLC -%# +%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC +%# %# %# (Except where explicitly superseded by other copyright notices) %# @@ -48,17 +48,12 @@ <%ARGS> $Name $Attr => undef +$GenericMap => {} <%ONCE> my $COLUMN_MAP = { - id => { - title => '#', # loc - attribute => 'id', - align => 'right', - value => sub { return $_[0]->Id }, - }, Name => { - title => sub { return "foo" }, #'Name', # loc + title => 'Name', # loc attribute => 'Name', value => sub { return $_[0]->Name()||loc("Unnamed search") }, }, @@ -80,6 +75,6 @@ my $COLUMN_MAP = { <%INIT> -$m->callback( COLUMN_MAP => $COLUMN_MAP, CallbackName => 'ColumnMap', CallbackOnce => 1 ); +$m->callback( GenericMap => $GenericMap, COLUMN_MAP => $COLUMN_MAP, CallbackName => 'ColumnMap', CallbackOnce => 1 ); return GetColumnMapEntry( Map => $COLUMN_MAP, Name => $Name, Attribute => $Attr );