Commit 2a023f5a6d01d799e60aad188c9e2f36c93e1676
Exists in
colab
and in
4 other branches
Merge pull request #271 from mezuro/fix_metric_code
Retrieving metric code when updating a compound metric configuration
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> | ... | ... |