[Rt-commit] r16446 - in rt/3.8/trunk: share/html/Search
alexmv at bestpractical.com
alexmv at bestpractical.com
Tue Oct 21 14:28:47 EDT 2008
Author: alexmv
Date: Tue Oct 21 14:28:47 2008
New Revision: 16446
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/share/html/Search/Simple.html
Log:
r38445 at kohr-ah: chmrr | 2008-10-21 14:28:18 -0400
* Allow optional # before ticket ID in simple search
Modified: rt/3.8/trunk/share/html/Search/Simple.html
==============================================================================
--- rt/3.8/trunk/share/html/Search/Simple.html (original)
+++ rt/3.8/trunk/share/html/Search/Simple.html Tue Oct 21 14:28:47 2008
@@ -79,14 +79,14 @@
if ($q) {
my $tickets = new RT::Tickets( $session{'CurrentUser'} );
- if ($q =~ /^(\d+)$/) {
- RT::Interface::Web::Redirect(RT->Config->Get('WebURL')."Ticket/Display.html?id=".$q);
+ if ($q =~ /^#?(\d+)$/) {
+ RT::Interface::Web::Redirect(RT->Config->Get('WebURL')."Ticket/Display.html?id=".$1);
}
$m->callback( %ARGS, query => \$q, CallbackName => 'ModifyQuery' );
- if ($q =~ /^(\d+)$/) {
- RT::Interface::Web::Redirect(RT->Config->Get('WebURL')."Ticket/Display.html?id=".$q);
+ if ($q =~ /^#?(\d+)$/) {
+ RT::Interface::Web::Redirect(RT->Config->Get('WebURL')."Ticket/Display.html?id=".$1);
}
my %args = (
More information about the Rt-commit
mailing list