[Rt-commit] r11804 - in rt/branches/3.8-TESTING/html/Elements: . RT__Queue
ruz at bestpractical.com
ruz at bestpractical.com
Mon Apr 21 07:56:03 EDT 2008
Author: ruz
Date: Mon Apr 21 07:56:02 2008
New Revision: 11804
Modified:
rt/branches/3.8-TESTING/html/Elements/ColumnMap
rt/branches/3.8-TESTING/html/Elements/RT__Queue/ColumnMap
rt/branches/3.8-TESTING/html/Elements/RT__Ticket/ColumnMap
Log:
* move __Web*__ mappings into generic map
Modified: rt/branches/3.8-TESTING/html/Elements/ColumnMap
==============================================================================
--- rt/branches/3.8-TESTING/html/Elements/ColumnMap (original)
+++ rt/branches/3.8-TESTING/html/Elements/ColumnMap Mon Apr 21 07:56:02 2008
@@ -130,6 +130,11 @@
return \qq{<input type="radio" name="SelectedTicket" value="$id" $checked />};
},
},
+ (map {
+ my $value = RT->Config->Get($_);
+ $_ => { value => sub { return \$value } };
+
+ } qw(WebPath WebBaseURL WebURL)),
};
</%ONCE>
Modified: rt/branches/3.8-TESTING/html/Elements/RT__Queue/ColumnMap
==============================================================================
--- rt/branches/3.8-TESTING/html/Elements/RT__Queue/ColumnMap (original)
+++ rt/branches/3.8-TESTING/html/Elements/RT__Queue/ColumnMap Mon Apr 21 07:56:02 2008
@@ -68,13 +68,6 @@
Address => {
value => sub { return ($_[0]->CorrespondAddress||'-') .'/'. ($_[0]->CommentAddress||'-') },
},
-
- (map {
- my $value = RT->Config->Get($_);
- $_ => { value => sub { return \$value } };
-
- } qw(WebPath WebBaseURL WebURL)),
-
};
foreach my $col(qw(Name Description CorrespondAddress CommentAddress InitialPriority FinalPriority DefaultDueIn)) {
$QUEUE_COLUMN_MAP->{$col} = { attribute => $col, value => sub { return $_[0]->$col() } };
Modified: rt/branches/3.8-TESTING/html/Elements/RT__Ticket/ColumnMap
==============================================================================
--- rt/branches/3.8-TESTING/html/Elements/RT__Ticket/ColumnMap (original)
+++ rt/branches/3.8-TESTING/html/Elements/RT__Ticket/ColumnMap Mon Apr 21 07:56:02 2008
@@ -267,12 +267,6 @@
$_ => { value => $LinkCallback->( $_ ) }
} keys %RT::Ticket::LINKTYPEMAP),
- (map {
- my $value = RT->Config->Get($_);
- $_ => { value => sub { return \$value } };
-
- } qw(WebPath WebBaseURL WebURL)),
-
'_CLASS' => {
value => sub { return $_[1] % 2 ? 'oddline' : 'evenline' }
},
More information about the Rt-commit
mailing list