[Rt-commit] r9730 - in rt/branches/3.6-RELEASE: .
html/REST/1.0/search
falcone at bestpractical.com
falcone at bestpractical.com
Fri Nov 23 17:15:55 EST 2007
Author: falcone
Date: Fri Nov 23 17:15:54 2007
New Revision: 9730
Modified:
rt/branches/3.6-RELEASE/ (props changed)
rt/branches/3.6-RELEASE/html/REST/1.0/search/ticket
rt/branches/3.6-RELEASE/lib/t/regression/26command_line.t
Log:
r26864 at ketch: falcone | 2007-11-23 17:04:49 -0500
* handle spaces in field names when doing rt ls
Modified: rt/branches/3.6-RELEASE/html/REST/1.0/search/ticket
==============================================================================
--- rt/branches/3.6-RELEASE/html/REST/1.0/search/ticket (original)
+++ rt/branches/3.6-RELEASE/html/REST/1.0/search/ticket Fri Nov 23 17:15:54 2007
@@ -59,7 +59,7 @@
my $tickets = new RT::Tickets $session{CurrentUser};
# Parse and validate any field specifications.
-my $field = '[a-zA-Z][a-zA-Z0-9_-]*';
+my $field = '[a-zA-Z](?:[a-zA-Z0-9_-]|\s+)*';
my (%fields, @fields);
if ($fields) {
$format ||= "l";
Modified: rt/branches/3.6-RELEASE/lib/t/regression/26command_line.t
==============================================================================
--- rt/branches/3.6-RELEASE/lib/t/regression/26command_line.t (original)
+++ rt/branches/3.6-RELEASE/lib/t/regression/26command_line.t Fri Nov 23 17:15:54 2007
@@ -3,7 +3,7 @@
use strict;
use Test::Expect;
#use Test::More qw/no_plan/;
-use Test::More tests => 216;
+use Test::More tests => 218;
use RT;
RT::LoadConfig();
@@ -162,6 +162,8 @@
expect_like(qr/Ticket $ticket_id updated/, 'Changed cf');
expect_send("show ticket/$ticket_id -f 'CF-my CF$$'", 'Checking new value');
expect_like(qr/my CF$$: VALUE/i, 'Verified change');
+expect_send("ls 'id = $ticket_id' -f 'CF-my CF$$'", 'Checking new value');
+expect_like(qr/my CF$$: VALUE/i, 'Verified change');
# ...
# change a ticket's ...[other properties]...
More information about the Rt-commit
mailing list