mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Fix document upload
This commit is contained in:
parent
7ef53cecfb
commit
8f90e4ba43
@ -60,10 +60,16 @@ class HistoryUtils
|
|||||||
|
|
||||||
public static function trackViewed(EntityModel $entity)
|
public static function trackViewed(EntityModel $entity)
|
||||||
{
|
{
|
||||||
if ($entity->isEntityType(ENTITY_CREDIT)
|
$entityType = $entity->getEntityType();
|
||||||
|| $entity->isEntityType(ENTITY_PAYMENT)
|
$trackedTypes = [
|
||||||
|| $entity->isEntityType(ENTITY_VENDOR)
|
ENTITY_CLIENT,
|
||||||
|| $entity->isEntityType(ENTITY_EXPENSE_CATEGORY)) {
|
ENTITY_INVOICE,
|
||||||
|
ENTITY_QUOTE,
|
||||||
|
ENTITY_TASK,
|
||||||
|
ENTITY_EXPENSE
|
||||||
|
];
|
||||||
|
|
||||||
|
if ( ! in_array($entityType, $trackedTypes)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user