Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Commit

rt branch, 4.0/current-user-in-format, created. rt-4.0.6-126-gb214017

 

 

Request Tracker commit RSS feed   Index | Next | Previous | View Threaded


trs at bestpractical

Jun 1, 2012, 10:52 AM

Post #1 of 1 (74 views)
Permalink
rt branch, 4.0/current-user-in-format, created. rt-4.0.6-126-gb214017

The branch, 4.0/current-user-in-format has been created
at b214017d99bcccce62f51a8436cc2115f541c0fd (commit)

- Log -----------------------------------------------------------------
commit b214017d99bcccce62f51a8436cc2115f541c0fd
Author: Thomas Sibley <trs [at] bestpractical>
Date: Fri Jun 1 13:50:24 2012 -0400

Provide __CurrentUser__ and __CurrentUserName__ for search result formats

Now it's possible to construct links based on the current user, for
example.

diff --git a/share/html/Elements/ColumnMap b/share/html/Elements/ColumnMap
index 87fd61b..4fa8214 100644
--- a/share/html/Elements/ColumnMap
+++ b/share/html/Elements/ColumnMap
@@ -160,6 +160,8 @@ my $COLUMN_MAP = {
} qw(WebPath WebBaseURL WebURL)),
WebRequestPath => { value => sub { substr( $m->request_path, 1 ) } },
WebRequestPathDir => { value => sub { substr( $m->request_comp->dir_path, 1 ) } },
+ CurrentUser => { value => sub { $session{CurrentUser}->id } },
+ CurrentUserName => { value => sub { $session{CurrentUser}->Name } },
};

$COLUMN_MAP->{'CF'} = $COLUMN_MAP->{'CustomField'};

-----------------------------------------------------------------------
_______________________________________________
Rt-commit mailing list
Rt-commit [at] lists
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit

Request Tracker commit RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.