[Rt-commit] r7038 - in rt/branches/3.7-EXPERIMENTAL-RTIR-2.2:
html/REST/1.0/Forms/ticket
ruz at bestpractical.com
ruz at bestpractical.com
Tue Feb 20 09:42:51 EST 2007
Author: ruz
Date: Tue Feb 20 09:42:49 2007
New Revision: 7038
Modified:
rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/ (props changed)
rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/REST/1.0/Forms/ticket/default
Log:
r4596 at cubic-pc (orig r7031): ruz | 2007-02-19 11:48:57 +0300
* better error propagation, thanks to Pholip Kime.
Modified: rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/REST/1.0/Forms/ticket/default
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/REST/1.0/Forms/ticket/default (original)
+++ rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/REST/1.0/Forms/ticket/default Tue Feb 20 09:42:49 2007
@@ -157,9 +157,11 @@
);
}
- $ticket->Create(%v);
- unless ($ticket->Id) {
- return [ "# Could not create ticket.", [], {}, 1 ];
+ my($tid,$trid,$terr) = $ticket->Create(%v);
+ unless ($tid) {
+ push(@comments, "# Could not create ticket.");
+ push(@comments, "# " . $terr);
+ goto DONE;
}
delete $data{id};
More information about the Rt-commit
mailing list