From a836df8f5b69dcab2f0b8bda2f29273c11b57837 Mon Sep 17 00:00:00 2001 From: Charles Duporge Date: Mon, 11 Sep 2017 15:43:01 +0200 Subject: [PATCH] Fix bug where unit name didn't display correctly when adding a storage zone --- app/views/backend/receptions/_storing_fields.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/backend/receptions/_storing_fields.html.haml b/app/views/backend/receptions/_storing_fields.html.haml index 12579348ac..f1dd3018e4 100644 --- a/app/views/backend/receptions/_storing_fields.html.haml +++ b/app/views/backend/receptions/_storing_fields.html.haml @@ -8,7 +8,7 @@ .storing-quantifier = f.input :quantity, label: false, wrapper: :append do = f.input_field :quantity, class: 'storing-quantity', placeholder: '0', data: { required: true } - %span.add-on.storage-unit-name{data: { 'when-item': 'unit_name', 'when-set-value': 'RECORD_VALUE', 'when-scope': 'unit'}} + %span.add-on.item-population-unit-name.storage-unit-name{data: { 'when-item': 'unit_name', 'when-set-value': 'RECORD_VALUE', 'when-scope': 'unit'}} = variant.unit_name.or_else('#') .nested-remove.act - if f.object.destroyable?