mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix 'View quote' link
This commit is contained in:
parent
5f6f3851d8
commit
9186047e6c
@ -235,7 +235,7 @@ class InvoicePresenter extends EntityPresenter
|
||||
$actions[] = ['url' => 'javascript:onConvertClick()', 'label' => trans('texts.convert_to_invoice')];
|
||||
}
|
||||
} elseif ($entityType == ENTITY_INVOICE) {
|
||||
if ($invoice->quote) {
|
||||
if ($invoice->quote_id && $invoice->quote) {
|
||||
$actions[] = ['url' => url("quotes/{$invoice->quote->public_id}/edit"), 'label' => trans('texts.view_quote')];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user