[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-128-g31f293e

Alex Vandiver alexmv at bestpractical.com
Thu Jul 8 15:00:26 EDT 2010


The branch, 3.9-trunk has been updated
       via  31f293ea27c830872fee8b1d8977cfc4bcb6749d (commit)
      from  5890f1da2313035a400eaf2e98ef7585913619be (commit)

Summary of changes:
 share/html/Admin/Groups/index.html |    2 ++
 share/html/Admin/Users/index.html  |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 31f293ea27c830872fee8b1d8977cfc4bcb6749d
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Thu Jul 8 15:01:43 2010 -0400

    Redirect to the Modify page if only one result matches a group or user search

diff --git a/share/html/Admin/Groups/index.html b/share/html/Admin/Groups/index.html
index 17b760c..12ea003 100755
--- a/share/html/Admin/Groups/index.html
+++ b/share/html/Admin/Groups/index.html
@@ -108,6 +108,8 @@ if (length $GroupString) {
 	    VALUE => $GroupString,
 	); 
     }
+    RT::Interface::Web::Redirect(RT->Config->Get('WebURL')."Admin/Groups/Modify.html?id=".$Groups->First->id)
+          if $Groups->Count == 1;
 }
 else {
     $caption = loc("User-defined groups");
diff --git a/share/html/Admin/Users/index.html b/share/html/Admin/Users/index.html
index 1909df0..4ac4483 100755
--- a/share/html/Admin/Users/index.html
+++ b/share/html/Admin/Users/index.html
@@ -112,6 +112,8 @@ if ( defined($UserString) && length $UserString ) {
             CASESENSITIVE => 0,
         ); 
     }
+    RT::Interface::Web::Redirect(RT->Config->Get('WebURL')."Admin/Users/Modify.html?id=".$users->First->id)
+          if $users->Count == 1;
 }
 else {
     $caption = loc("Privileged users");

-----------------------------------------------------------------------


More information about the Rt-commit mailing list