Fix 'View quote' link
This commit is contained in:
parent
5f6f3851d8
commit
9186047e6c
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue