
elacour at bestpractical
Nov 20, 2009, 3:13 PM
Post #1 of 1
(294 views)
Permalink
|
|
rt branch, 3.8-trunk, updated. rt-3.8.6-95-gc39ee41
|
|
The branch, 3.8-trunk has been updated via c39ee41af11ee3a52a9bd998e6ab5c887edf1bd9 (commit) from 90fa1f465e557daea803d2a3f69d401fe9b2cf0f (commit) Summary of changes: share/html/index.html | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) - Log ----------------------------------------------------------------- commit c39ee41af11ee3a52a9bd998e6ab5c887edf1bd9 Author: Emmanuel Lacour <elacour [at] home-dn> Date: Sat Nov 21 00:12:22 2009 +0100 Add ability to skip QuickCreate ticket creation in the Initial callback (consistent with Ticket/Create.html and SelfService/Create.html) diff --git a/share/html/index.html b/share/html/index.html index a554e9c..ad9964c 100755 --- a/share/html/index.html +++ b/share/html/index.html @@ -87,8 +87,10 @@ If you need commercial support, please contact us at sales [at] bestpractical <%init> my @results; +my $skip_create = 0; -$m->callback( ARGSRef => \%ARGS, results => \@results, CallbackName => 'Initial' ); +$m->callback( ARGSRef => \%ARGS, results => \@results, CallbackName => 'Initial', + skip_create => \$skip_create ); if ( $ARGS{'QuickCreate'} ) { my $QueueObj = new RT::Queue($session{'CurrentUser'}); @@ -103,7 +105,7 @@ if ( $ARGS{'QuickCreate'} ) { ); - if ( $ValidCFs ) { + if ( $ValidCFs && !$skip_create ) { my ($t, $msg) = CreateTicket( Queue => $ARGS{'Queue'}, Owner => $ARGS{'Owner'}, @@ -115,7 +117,7 @@ if ( $ARGS{'QuickCreate'} ) { Subject => $ARGS{'Subject'}); push @results, $msg; } - else { + elsif ( !$ValidCFs ) { push @results, "can't quickly create ticket in queue " . $QueueObj->Name . ' because some custom fields need to be set, please go to normal ticket creation page to do that.'; } ----------------------------------------------------------------------- _______________________________________________ Rt-commit mailing list Rt-commit [at] lists http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit
|