summaryrefslogtreecommitdiff
path: root/rt/share/html/Callbacks/CheckMandatoryFields/Ticket/Update.html
diff options
context:
space:
mode:
authormark <mark>2011-05-31 23:30:13 +0000
committermark <mark>2011-05-31 23:30:13 +0000
commite02e5448d8fdad322dbe5562f92d9623e5d6f0dd (patch)
tree0b7385d69d9a8bac89f8d7387387faa8eb55ac2e /rt/share/html/Callbacks/CheckMandatoryFields/Ticket/Update.html
parentdd65ba99bb9281571f19744154a3b03bcd3f01ab (diff)
improve mandatory fields, #9260
Diffstat (limited to 'rt/share/html/Callbacks/CheckMandatoryFields/Ticket/Update.html')
-rw-r--r--rt/share/html/Callbacks/CheckMandatoryFields/Ticket/Update.html/BeforeDisplay24
1 files changed, 0 insertions, 24 deletions
diff --git a/rt/share/html/Callbacks/CheckMandatoryFields/Ticket/Update.html/BeforeDisplay b/rt/share/html/Callbacks/CheckMandatoryFields/Ticket/Update.html/BeforeDisplay
deleted file mode 100644
index 0d69bc27b..000000000
--- a/rt/share/html/Callbacks/CheckMandatoryFields/Ticket/Update.html/BeforeDisplay
+++ /dev/null
@@ -1,24 +0,0 @@
-<%doc>
-When the user tries to change a ticket's status to "resolved" through
-the Update interface, check mandatory fields. If they aren't all set,
-redirect to Ticket Basics instead of updating. Note that this will
-lose any comments/time/other information the user has entered.
-</%doc>
-
-<%init>
-my $TicketObj = $ARGS{'Ticket'};
-my $ARGSRef = $ARGS{'ARGSRef'};
-my $oldStatus = $TicketObj->Status();
-my $newStatus = $ARGSRef->{'Status'} || $ARGSRef->{'DefaultStatus'};
-if( $oldStatus ne 'resolved' and
- $newStatus eq 'resolved' and
- $m->comp('/Ticket/Elements/CheckMandatoryFields',
- Ticket => $TicketObj
- ) ) {
- $m->clear_buffer;
- RT::Interface::Web::Redirect(
- RT->Config->Get('WebURL')."Ticket/Modify.html?id=".$TicketObj->Id."&resolve=1"
- );
- $m->abort;
-}
-</%init>