summaryrefslogtreecommitdiffstats
path: root/extensions/Ember
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/Ember')
-rw-r--r--extensions/Ember/lib/WebService.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/Ember/lib/WebService.pm b/extensions/Ember/lib/WebService.pm
index 4f7a0c713..423c8de34 100644
--- a/extensions/Ember/lib/WebService.pm
+++ b/extensions/Ember/lib/WebService.pm
@@ -323,10 +323,12 @@ sub _field_to_hash {
# Use the API name if one is present instead of the internal field name
my $field_name = $field->name;
+ $field_name = API_NAMES->{$field_name} || $field_name;
+
if ($field_name eq 'longdesc') {
$field_name = $bug->id ? 'comment' : 'description';
}
- $field_name = API_NAMES->{$field_name} || $field_name;
+
$data->{name} = $self->type('string', $field_name);
# Set can_edit true or false if we are editing a current bug