Commit 1736dc2de3765ecf7d98e7f6bf8eb7f0dd21933b
1 parent
17b2b898
Exists in
colab
and in
4 other branches
Retrieving metric code when updating a compound metric configuration
Signed off by: Heitor Reis <marcheing@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
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> | ... | ... |