[freeside-commits] branch FREESIDE_3_BRANCH updated. f46c9ed67a0d771216210729a24878a75931853d

Mark Wells mark at 420.am
Tue Aug 13 14:34:52 PDT 2013


The branch, FREESIDE_3_BRANCH has been updated
       via  f46c9ed67a0d771216210729a24878a75931853d (commit)
      from  728ab2fda5b05b3021b62a3c5d7c4d97e97edcaa (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f46c9ed67a0d771216210729a24878a75931853d
Author: Mark Wells <mark at freeside.biz>
Date:   Tue Aug 13 14:34:43 2013 -0700

    fix WillResolve date fallout from #23309

diff --git a/rt/lib/RT/Interface/Web_Vendor.pm b/rt/lib/RT/Interface/Web_Vendor.pm
index 7a4804b..023dede 100644
--- a/rt/lib/RT/Interface/Web_Vendor.pm
+++ b/rt/lib/RT/Interface/Web_Vendor.pm
@@ -257,17 +257,18 @@ sub ProcessTicketBasics {
         WillResolve
     );
 
-# causes endless redirect loops and "WillResolve changed from Not set to Not set" on ticket view?
-#    # the UI for editing WillResolve through Ticket Basics should allow 
-#    # setting it to null
-#    my $to_date = delete($ARGSRef->{'WillResolve_Date'});
-#    my $DateObj = RT::Date->new($session{'CurrentUser'});
-#    if ( $to_date ) {
-#        $DateObj->Set(Format => 'unknown', Value => $to_date);
-#    } else {
-#        $DateObj->Set(Value => 0);
-#    }
-#    $ARGSRef->{'WillResolve'} = $DateObj->ISO;
+    # the UI for editing WillResolve through Ticket Basics should allow 
+    # setting it to null
+    if ( exists $ARGSRef->{'WillResolve_Date'} ) {
+      my $to_date = delete($ARGSRef->{'WillResolve_Date'});
+      my $DateObj = RT::Date->new($session{'CurrentUser'});
+      if ( $to_date ) {
+          $DateObj->Set(Format => 'unknown', Value => $to_date);
+      } else {
+          $DateObj->Set(Value => 0);
+      }
+      $ARGSRef->{'WillResolve'} = $DateObj->ISO;
+    }
 
     if ( $ARGSRef->{'Queue'} and ( $ARGSRef->{'Queue'} !~ /^(\d+)$/ ) ) {
         my $tempqueue = RT::Queue->new($RT::SystemUser);

-----------------------------------------------------------------------

Summary of changes:
 rt/lib/RT/Interface/Web_Vendor.pm |   23 ++++++++++++-----------
 1 files changed, 12 insertions(+), 11 deletions(-)




More information about the freeside-commits mailing list