diff --git a/app/assets/javascripts/templates/admin/panels/exchange_products_distributed.html.haml b/app/assets/javascripts/templates/admin/panels/exchange_products_distributed.html.haml index a05479f892..fcb438653c 100644 --- a/app/assets/javascripts/templates/admin/panels/exchange_products_distributed.html.haml +++ b/app/assets/javascripts/templates/admin/panels/exchange_products_distributed.html.haml @@ -16,8 +16,8 @@ .exchange-product-details %label %img{'ng-src' => '{{ product.image_url }}'} - .name {{ 'ng-bind' => product.name }} - .supplier {{ 'ng-bind' => product.supplier_name }} + .name {{ product.name }} + .supplier {{ product.supplier_name }} .exchange-product-variant{'ng-repeat' => 'variant in product.variants | visibleVariants:exchange:order_cycle.visible_variants_for_outgoing_exchanges | filter:variantSuppliedToOrderCycle as filteredVariants'} %label diff --git a/app/views/admin/variant_overrides/_products_variants.html.haml b/app/views/admin/variant_overrides/_products_variants.html.haml index c924044c9b..206d916bfc 100644 --- a/app/views/admin/variant_overrides/_products_variants.html.haml +++ b/app/views/admin/variant_overrides/_products_variants.html.haml @@ -1,5 +1,5 @@ %tr.variant{ id: "v_{{variant.id}}", "ng-repeat": 'variant in product.variants | inventoryVariants:hub_id:views' } - %td.producer{ "ng-show": 'columns.producer.visible', "ng-bind": '::producersByID[variant.producer_id].name' } + %td.producer{ "ng-show": 'columns.producer.visible', "ng-bind-html": '::producersByID[variant.producer_id].name' } %td.product{ "ng-show": 'columns.product.visible' } %span{ "ng-bind": '::variant.display_name || ""' } .variant-override-unit{ "ng-bind": '::variant.unit_to_display' }