X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FRT__CustomField%2FColumnMap;h=765be2925a54c23682c8c48704e3de5ddfe700d2;hb=31f3763747b82764bb019cfab5b2a2945fc9a99d;hp=ecb219d9e22d009869ac8f0ecc25907a2f28263a;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500;p=freeside.git diff --git a/rt/share/html/Elements/RT__CustomField/ColumnMap b/rt/share/html/Elements/RT__CustomField/ColumnMap index ecb219d9e..765be2925 100644 --- a/rt/share/html/Elements/RT__CustomField/ColumnMap +++ b/rt/share/html/Elements/RT__CustomField/ColumnMap @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -104,7 +104,7 @@ my $COLUMN_MAP = { $res .= ', ' if $res; my $id = ''; - $id = $record->Name if $record->can('Name'); + $id = $record->Name if $record->_Accessible('Name','read'); $id ||= "#". $record->id; $res .= $id; @@ -118,7 +118,7 @@ my $COLUMN_MAP = { RemoveCheckBox => { title => sub { my $name = 'RemoveCustomField'; - my $checked = $m->request_args->{ $name .'All' }? 'checked="checked"': ''; + my $checked = $DECODED_ARGS->{ $name .'All' }? 'checked="checked"': ''; return \qq{comp("/Elements/QueryString", %pass, MoveCustomFieldUp => $id ), - \'">', loc('[Up]'), \'', + \'">', loc('~[Up~]'), \'', \' $id ), - \'">', loc('[Down]'), \'' + \'">', loc('~[Down~]'), \'' ); return @res;