import rt 3.4.6
[freeside.git] / rt / html / REST / 1.0 / search / ticket
index 6b52ac8..0990fd6 100644 (file)
@@ -1,8 +1,8 @@
-%# {{{ BEGIN BPS TAGGED BLOCK
+%# BEGIN BPS TAGGED BLOCK {{{
 %# 
 %# COPYRIGHT:
 %#  
-%# This software is Copyright (c) 1996-2004 Best Practical Solutions, LLC 
+%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC 
 %#                                          <jesse@bestpractical.com>
 %# 
 %# (Except where explicitly superseded by other copyright notices)
@@ -42,7 +42,7 @@
 %# works based on those contributions, and sublicense and distribute
 %# those contributions and any derivatives thereof.
 %# 
-%# }}} END BPS TAGGED BLOCK
+%# END BPS TAGGED BLOCK }}}
 %# REST/1.0/search/ticket
 %#
 <%ARGS>
@@ -123,7 +123,7 @@ while (my $ticket = $tickets->Next) {
     }
     else {
        my $id = $ticket->Id;
-        my $d = $m->comp("$RT::WebPath/REST/1.0/Forms/ticket/default", id => $id, format => $format, fields => \%fields);
+        my $d = $m->comp("/REST/1.0/Forms/ticket/default", id => $id, format => $format, fields => \%fields);
         my ($c, $o, $k, $e) = @$d;
        push @output, [ $c, $o, $k ];
     }
@@ -135,7 +135,7 @@ if ($n == 0 && $format ne "i") {
 $output = form_compose(\@output) if @output;
 
 OUTPUT:
-$m->out("RT/". $RT::VERSION . " " . $status);
+$m->out("RT/". $RT::VERSION . " " . $status ."\n\n");
 
 $m->out($output );
 </%INIT>