[Rt-commit] rt branch, 4.2-on-4.0/rest-just-call-add-custom-field-value, created. rt-4.0.8-310-gb087173
Ruslan Zakirov
ruz at bestpractical.com
Fri Dec 28 11:56:51 EST 2012
The branch, 4.2-on-4.0/rest-just-call-add-custom-field-value has been created
at b0871739ecdd192e34cb7a6286cffe6cb0a58299 (commit)
- Log -----------------------------------------------------------------
commit b0871739ecdd192e34cb7a6286cffe6cb0a58299
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date: Mon Jul 2 21:05:36 2012 +0300
just call AddCustomField value
We do report that "something" was already the current value for
other fields (eg. Status), so I don't see reason to handle it
specially for custom fields.
diff --git a/share/html/REST/1.0/Forms/ticket/default b/share/html/REST/1.0/Forms/ticket/default
index dc65fb4..ed87dbe 100644
--- a/share/html/REST/1.0/Forms/ticket/default
+++ b/share/html/REST/1.0/Forms/ticket/default
@@ -385,19 +385,9 @@ else {
}
}
elsif ( $cf->SingleValue ) {
- my $old = $vals->Next;
- if ( $old ) {
- if ( $val ne $old->Content ) {
- ($n, $s) = $ticket->AddCustomFieldValue(
- Field => $cf, Value => $val );
- $s =~ s/^# // if defined $s;
- }
- }
- else {
- ($n, $s) = $ticket->AddCustomFieldValue(
- Field => $cf, Value => $val );
- $s =~ s/^# // if defined $s;
- }
+ ($n, $s) = $ticket->AddCustomFieldValue(
+ Field => $cf, Value => $val );
+ $s =~ s/^# // if defined $s;
}
else {
my @new;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list