X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FTicket%2FUpdate.html;h=771f91b412d422579321a900ead76746f7479df1;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=b23f70aed0c559fc7af24aa931f79b2d3d947a99;hpb=7322f2afedcc2f427e997d1535a503613a83f088;p=freeside.git diff --git a/rt/share/html/Ticket/Update.html b/rt/share/html/Ticket/Update.html index b23f70aed..771f91b41 100755 --- a/rt/share/html/Ticket/Update.html +++ b/rt/share/html/Ticket/Update.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2016 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -254,7 +254,7 @@ unless($DefaultStatus){ $DefaultStatus=($ARGS{'Status'} ||$TicketObj->Status()); } -my $title = loc("Update ticket #[_1] ([_2])", $TicketObj->id, $TicketObj->Subject||''); +my $title = loc("Update ticket #[_1]: [_2]", $TicketObj->id, $TicketObj->Subject); # Things needed in the template - we'll do the processing here, just # for the convenience: @@ -325,6 +325,9 @@ if ( $ARGS{'SubmitTicket'} ) { $ARGS{ $field } = join ', ', map $_->format, grep defined, @emails; } } + +# $skip_update is provided below by reference to allow a final check to stop +# the update and print a message for the user to fix something. my $skip_update = 0; $m->callback( CallbackName => 'BeforeUpdate', ARGSRef => \%ARGS, skip_update => \$skip_update, checks_failure => $checks_failure, results => \@results, TicketObj => $TicketObj );