This commit was manufactured by cvs2svn to create tag 'freeside_2_1_1'.
[freeside.git] / rt / share / html / Admin / CustomFields / Modify.html
index fc2c49d..d2932d2 100644 (file)
@@ -199,15 +199,6 @@ if ( $ARGS{'Update'} && $id ne 'new' ) {
         push (@results, $msg);
     }
 
-    # Clean up values
-    foreach my $param (grep /^$paramtag-/, keys(%ARGS)) {
-      for ($ARGS{$param}) {
-        s/\r+\n/\n/g;
-        s/^\s+//;
-        s/\s+$//;
-      }
-    }
-
     # Update any existing values
     my $values = $CustomFieldObj->ValuesObj;
     while ( my $value = $values->Next ) {
@@ -215,6 +206,7 @@ if ( $ARGS{'Update'} && $id ne 'new' ) {
             my $param = join("-", $paramtag, $value->Id, $attr);
             next unless exists $ARGS{$param};
             next if ($value->$attr()||'') eq ($ARGS{$param}||'');
+
             my $mutator = "Set$attr";
             my ($id, $msg) = $value->$mutator( $ARGS{$param} );
             push (@results, $msg);