X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=rt%2Fshare%2Fhtml%2FAdmin%2FCustomFields%2FModify.html;h=d2932d2d9cdc337e15a84c99043287d2a5b1d5c2;hb=74a3083375ccc3a0dc8b74f9b39392989d088656;hp=fc2c49d59b14df126839afdf238f7c6fc2659e6d;hpb=aaf8baf3662e16e9414de236a39f8801a8c41b01;p=freeside.git diff --git a/rt/share/html/Admin/CustomFields/Modify.html b/rt/share/html/Admin/CustomFields/Modify.html index fc2c49d59..d2932d2d9 100644 --- a/rt/share/html/Admin/CustomFields/Modify.html +++ b/rt/share/html/Admin/CustomFields/Modify.html @@ -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);