X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FTicket%2FElements%2FShowRequestorExtraInfo;h=560e3076cc72f74f9c83ef31d33e76f17394544a;hp=42c8f25e1e14a7b26465a1a70d6f0c77fb86c82d;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hpb=73a6a80a9ca5edbd43d139b7cb25bfee4abfd35e diff --git a/rt/share/html/Ticket/Elements/ShowRequestorExtraInfo b/rt/share/html/Ticket/Elements/ShowRequestorExtraInfo index 42c8f25e1..560e3076c 100644 --- a/rt/share/html/Ticket/Elements/ShowRequestorExtraInfo +++ b/rt/share/html/Ticket/Elements/ShowRequestorExtraInfo @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -45,45 +45,7 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} -
-% for my $column (@formats) { -% my $title = $column->{title} || ''; -% my $attr = $column->{'attribute'} || $column->{'last_attribute'}; -% unless (defined $column->{title}) { -% $title = $fetch_columnmap->($attr,'title',[$attr]); -% } -% $title = $m->comp('/Elements/ScrubHTML', Content => $title); -
-<% loc($title) %> -% my @out; -% foreach my $subcol ( @{ $column->{output} } ) { -% my ($col) = ($subcol =~ /^__(.*?)__$/); -% unless ( $col ) { -% push @out, $subcol; -% next; -% } -% push @out, $fetch_columnmap->($col, 'value', [$Requestor]); -% } -% @out = grep { defined $_ and length $_ } @out; -<% join(' ',@out) %> -
-% } -
-<%INIT> -my $format = RT->Config->Get('MoreAboutRequestorExtraInfo'); -my @formats = $m->comp('/Elements/CollectionAsTable/ParseFormat', Format => $format); - -my $fetch_columnmap = sub { - my ($name, $attr, $arguments) = @_; - my $tmp = $m->comp( '/Elements/ColumnMap', - Class => $Class, - Name => $name, - Attr => $attr, - ); - return ProcessColumnMapValue( $tmp, Arguments => $arguments, Escape => 0 ); -}; - +<& /User/Elements/UserInfo, User => $Requestor, FormatConfig => 'MoreAboutRequestorExtraInfo', ClassPrefix => 'more-about-requestor' &> <%ARGS> $Requestor => undef -$Class => 'RT__User';