Commit 1736dc2de3765ecf7d98e7f6bf8eb7f0dd21933b

Authored by Diego Camarinha
1 parent 17b2b898

Retrieving metric code when updating a compound metric configuration

Signed off by: Heitor Reis <marcheing@gmail.com>
app/views/compound_metric_configurations/_metric_options.html.erb
... ... @@ -49,7 +49,7 @@
49 49 <div class="form-row">
50 50 <div class="field-container">
51 51 <%= f.label :code, compound_metric_human_attribute_name('code'), class: 'control-label' %>
52   - <%= f.text_field :code, :required => true, class: 'text-field form-control' %>
  52 + <%= f.text_field :code, :required => true, class: 'text-field form-control', value: (metric.code unless metric.nil?) %>
53 53 </div>
54 54 <div class="help-container">
55 55 <p>
... ...