[Rt-devel] RT 3.6 BUG: Not an error if $Trans == 0

Todd Chapman todd at chaka.net
Mon Jul 10 16:56:25 EDT 2006


If a ticket is created with _RecordTransaction set to
zero, it's not an error when zero is returned as the
transaction id. Patch attached.

-Todd
-------------- next part --------------
--- lib/RT/Interface/Web.pm (revision 7155)
+++ lib/RT/Interface/Web.pm (local)
@@ -384,7 +384,7 @@


     my ( $id, $Trans, $ErrMsg ) = $Ticket->Create(%create_args);
-    unless ( $id && $Trans ) {
+    unless ( $id ) {
         Abort($ErrMsg);
     }

=== lib/RT/Interface/Web.pm
==================================================================



More information about the Rt-devel mailing list