[rt-devel] Problem in SelfService/Display.html

Philip Warner pjw at rhyme.com.au
Tue Nov 12 10:26:05 EST 2002


The current release has problem with users creating a new ticket 
and not being able to view them. The problem is fixed by the 
following patch, but it is less than ideal. It looks like 
Ticket.pm is not correctly loading it's details when it is created,
so I expect that there is a much better solution.


--- Display.html.orig   2002-11-12 23:17:12.000000000 +1100
+++ Display.html        2002-11-12 23:15:53.000000000 +1100
@@ -153,6 +153,12 @@
 
     push(@results, $ErrMsg);
 
+    $Ticket = new RT::Ticket($session{'CurrentUser'});
+    unless ($Ticket->Load($id)) {
+       $m->comp('Error.html', Why =>"Couldn't load new ticket '$id'");
+       $m->abort();
+    }
+
     # }}}
 }
 else {



----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 03 5330 3172          |                 ___________ |
Http://www.rhyme.com.au          |                /           \|
                                 |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/




More information about the Rt-devel mailing list