Commit 2a023f5a6d01d799e60aad188c9e2f36c93e1676

Authored by Rafael Manzo
2 parents e8ac38fd 1736dc2d

Merge pull request #271 from mezuro/fix_metric_code

Retrieving metric code when updating a compound metric configuration
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>
... ...