bugfix zertifikate
All checks were successful
Build & Push Docker Image / docker (push) Successful in 1m53s
All checks were successful
Build & Push Docker Image / docker (push) Successful in 1m53s
This commit is contained in:
parent
dedcb041c5
commit
141f4da7e9
@ -25,9 +25,14 @@ class CertificateService extends MediaService
|
||||
{
|
||||
$template = CertificateTemplate::findOrFail($id);
|
||||
|
||||
$updateData = $data;
|
||||
unset($updateData['logo']);
|
||||
|
||||
$template->update($updateData);
|
||||
|
||||
if (array_key_exists('logo', $data) && $data['logo']) {
|
||||
$template->update([
|
||||
'logo_path' => $this->addNewDeletePrev($template, $data['logo'], 'certificates_logo')
|
||||
'logo_path' => $this->addNewDeletePrev($template, $data['logo'], 'certificates_logo'),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user