RT custom fields patch, RT#8449
[freeside.git] / rt / lib / RT / Interface / Web.pm
index d6b854f..edb719d 100644 (file)
@@ -1714,6 +1714,9 @@ 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 eq 'Date' && ! @values );
+
             $cf_values->RedoSearch;
             while ( my $cf_value = $cf_values->Next ) {
                 next if $values_hash{ $cf_value->id };