Handle company logo not present failure
This commit is contained in:
parent
71b243bace
commit
c3f05d5c8c
1 changed files with 8 additions and 0 deletions
|
|
@ -40,5 +40,13 @@ trait Uploadable
|
|||
$entity->save();
|
||||
}
|
||||
}
|
||||
else{
|
||||
/* Catch Failures */
|
||||
$settings = $entity->settings;
|
||||
$settings->company_logo = '';
|
||||
$entity->settings = $settings;
|
||||
$entity->save();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue