[Rt-commit] rt branch, 4.0/lifecycles-on-queue-admin, created. rt-4.0.4-265-g1381f80
Alex Vandiver
alexmv at bestpractical.com
Fri Jan 27 14:51:15 EST 2012
The branch, 4.0/lifecycles-on-queue-admin has been created
at 1381f80a9a38c68d51b1849317b99e3c957394be (commit)
- Log -----------------------------------------------------------------
commit 3166d0b395f29bb0cf2ac7a79c5c1c5e40ec0fcb
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Fri Jan 27 14:44:19 2012 -0500
Make Lifecycle ColumnMap display correctly in Queue admin lists
Since ->LifeCycle returns the RT::Lifecycle object, it previously
displayed as RT::LifeCycle=HASH(0xcafe11).
diff --git a/share/html/Elements/RT__Queue/ColumnMap b/share/html/Elements/RT__Queue/ColumnMap
index 00655c5..e08dd7c 100644
--- a/share/html/Elements/RT__Queue/ColumnMap
+++ b/share/html/Elements/RT__Queue/ColumnMap
@@ -84,12 +84,16 @@ my $COLUMN_MAP = {
title => 'Encrypt', # loc
value => sub { return $_[0]->Encrypt? $_[0]->loc('yes') : $_[0]->loc('no') },
},
+ Lifecycle => {
+ title => 'Lifecycle',
+ attribute => 'Lifecycle',
+ value => sub { return $_[0]->Lifecycle->Name },
+ },
};
foreach my $field (qw(
Name Description CorrespondAddress CommentAddress
InitialPriority FinalPriority DefaultDueIn
- Lifecycle
)) {
$COLUMN_MAP->{$field} = {
title => $field,
commit 1381f80a9a38c68d51b1849317b99e3c957394be
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Fri Jan 27 14:51:12 2012 -0500
Add the lifecycle to the default queue display
diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index 822e074..fa29fc1 100755
--- a/etc/RT_Config.pm.in
+++ b/etc/RT_Config.pm.in
@@ -2489,7 +2489,7 @@ Set(%AdminSearchResultFormat,
Queues =>
q{'<a href="__WebPath__/Admin/Queues/Modify.html?id=__id__">__id__</a>/TITLE:#'}
.q{,'<a href="__WebPath__/Admin/Queues/Modify.html?id=__id__">__Name__</a>/TITLE:Name'}
- .q{,__Description__,__Address__,__Priority__,__DefaultDueIn__,__Disabled__},
+ .q{,__Description__,__Address__,__Priority__,__DefaultDueIn__,'__Disabled__,__Lifecycle__},
Groups =>
q{'<a href="__WebPath__/Admin/Groups/Modify.html?id=__id__">__id__</a>/TITLE:#'}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list