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