[Rt-commit] rt branch, 4.0/cf-date-keep-input-value, updated. rt-4.0.5-113-gb5d246d

? sunnavy sunnavy at bestpractical.com
Tue Apr 3 00:41:16 EDT 2012


The branch, 4.0/cf-date-keep-input-value has been updated
       via  b5d246d5c5e287661dc3fbcfbb52931ae08ee62b (commit)
      from  169d74918c7060081ade97381bb2cb4f0324a8b2 (commit)

Summary of changes:
 lib/RT/Interface/Web.pm |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit b5d246d5c5e287661dc3fbcfbb52931ae08ee62b
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Apr 3 12:38:05 2012 +0800

    allow to delete a cf date value
    
    as now empty cf date input means delete only

diff --git a/lib/RT/Interface/Web.pm b/lib/RT/Interface/Web.pm
index 01789ea..4d93059 100644
--- a/lib/RT/Interface/Web.pm
+++ b/lib/RT/Interface/Web.pm
@@ -2336,9 +2336,6 @@ sub _ProcessObjectCustomFieldUpdates {
                 $values_hash{$val} = 1 if $val;
             }
 
-            # For Date Cfs, @values is empty when there is no changes (no datas in form input)
-            return @results if ( $cf->Type =~ /^Date(?:Time)?$/ && ! @values );
-
             $cf_values->RedoSearch;
             while ( my $cf_value = $cf_values->Next ) {
                 next if $values_hash{ $cf_value->id };

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


More information about the Rt-commit mailing list