From b22677ecedb64ce96fd305f109dc7d4167709234 Mon Sep 17 00:00:00 2001 From: Julius Date: Mon, 30 Dec 2013 11:26:10 +0100 Subject: [PATCH] Change order link from invoice form to avoid access problems --- app/views/finance/invoices/_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/finance/invoices/_form.html.haml b/app/views/finance/invoices/_form.html.haml index 8f8ce228..d2c6d144 100644 --- a/app/views/finance/invoices/_form.html.haml +++ b/app/views/finance/invoices/_form.html.haml @@ -5,7 +5,7 @@ - if @invoice.delivery %p= t('finance.invoices.linked', what_link: link_to(t('finance.invoices.linked_delivery'), [@invoice.supplier,@invoice.delivery])).html_safe - if @invoice.order - %p= t('finance.invoices.linked', what_link: link_to(t('finance.invoices.linked_order'), @invoice.order)).html_safe + %p= t('finance.invoices.linked', what_link: link_to(t('finance.invoices.linked_order'), new_finance_order_path(order_id: @invoice.order.id))).html_safe = f.association :supplier, hint: false = f.input :number