[Rt-commit] rt branch, 4.2/user-autocomplete-cfs, updated. rt-4.1.8-416-ga84bc82
Alex Vandiver
alexmv at bestpractical.com
Thu May 23 19:27:56 EDT 2013
The branch, 4.2/user-autocomplete-cfs has been updated
via a84bc821a6abf0225777495c8a16d8ef78766e96 (commit)
from 5ad3ee486a43787345b16b52e401239b8a387027 (commit)
Summary of changes:
share/html/User/Search.html | 3 +++
1 file changed, 3 insertions(+)
- Log -----------------------------------------------------------------
commit a84bc821a6abf0225777495c8a16d8ef78766e96
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Thu May 23 19:27:41 2013 -0400
If there is but one user search result, redirect to it
diff --git a/share/html/User/Search.html b/share/html/User/Search.html
index 530467f..102a93d 100644
--- a/share/html/User/Search.html
+++ b/share/html/User/Search.html
@@ -92,6 +92,9 @@ $users->SimpleSearch( Return => 'Name',
Max => 100,
Exclude => $exclude );
+RT::Interface::Web::Redirect(RT->Config->Get('WebURL')."User/Summary.html?id=".$users->First->Id)
+ if $users->Count == 1;
+
my $Format = RT->Config->Get('UserSearchResultFormat');
my $search_fields = join ", ", map loc($_), keys %{RT->Config->Get('UserSearchFields')};
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list