mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for tests
This commit is contained in:
parent
59b309aed0
commit
5d9392a55b
@ -46,7 +46,9 @@ class InvoiceRequest extends EntityRequest
|
|||||||
if(request()->is('quotes/*') && request()->isMethod('get') && !$this->user()->can('view', ENTITY_QUOTE))
|
if(request()->is('quotes/*') && request()->isMethod('get') && !$this->user()->can('view', ENTITY_QUOTE))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
HistoryUtils::trackViewed($invoice);
|
if ($invoice) {
|
||||||
|
HistoryUtils::trackViewed($invoice);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -106,10 +106,6 @@ class HistoryUtils
|
|||||||
|
|
||||||
public static function trackViewed(EntityModel $entity)
|
public static function trackViewed(EntityModel $entity)
|
||||||
{
|
{
|
||||||
if (! $entity) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$entityType = $entity->getEntityType();
|
$entityType = $entity->getEntityType();
|
||||||
$trackedTypes = [
|
$trackedTypes = [
|
||||||
ENTITY_CLIENT,
|
ENTITY_CLIENT,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user