[Rt-commit] [svn] r1019 - rt/trunk/html/Ticket

alexmv at pallas.eruditorum.org alexmv at pallas.eruditorum.org
Mon Jun 7 14:07:38 EDT 2004


Author: alexmv
Date: Mon Jun  7 14:07:37 2004
New Revision: 1019

Modified:
   rt/trunk/html/Ticket/Create.html
Log:
RT-Ticket: 5647
RT-Action: comment
RT-Status: resolved

 * Only apply default due date of the queue if the user didn't supply
   one for the ticket.


Modified: rt/trunk/html/Ticket/Create.html
==============================================================================
--- rt/trunk/html/Ticket/Create.html	(original)
+++ rt/trunk/html/Ticket/Create.html	Mon Jun  7 14:07:37 2004
@@ -208,7 +208,9 @@
 $QueueObj->Load($Queue) || Abort(loc("Queue could not be loaded."));
 my $CFs = $QueueObj->CustomFields();
 
-if ($QueueObj->DefaultDueIn) {
+# if no due date has been set explicitly, then use the
+# queue's default if it exists
+if ($QueueObj->DefaultDueIn && !$ARGS{'Due'}) {
     my $default_due = RT::Date->new($session{'CurrentUser'});
     $default_due->SetToNow();
     $default_due->AddDays($QueueObj->DefaultDueIn);


More information about the Rt-commit mailing list