Fix document upload
This commit is contained in:
parent
7ef53cecfb
commit
8f90e4ba43
1 changed files with 10 additions and 4 deletions
|
|
@ -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…
Add table
Reference in a new issue