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
8a9061b00e
commit
4976d5b057
@ -32,7 +32,7 @@ class EntityRequest extends Request {
|
||||
|
||||
$class = Utils::getEntityClass($this->entityType);
|
||||
|
||||
if (method_exists($class, 'withTrashed')) {
|
||||
if (method_exists($class, 'trashed')) {
|
||||
$this->entity = $class::scope($publicId)->withTrashed()->firstOrFail();
|
||||
} else {
|
||||
$this->entity = $class::scope($publicId)->firstOrFail();
|
||||
|
@ -33,7 +33,7 @@ class EntityModel extends Eloquent
|
||||
$entity->setRelation('user', $user);
|
||||
$entity->setRelation('account', $account);
|
||||
|
||||
if (method_exists($className, 'withTrashed')){
|
||||
if (method_exists($className, 'trashed')){
|
||||
$lastEntity = $className::withTrashed()
|
||||
->scope(false, $entity->account_id);
|
||||
} else {
|
||||
|
491
composer.lock
generated
491
composer.lock
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user