accounting workflows
This commit is contained in:
@@ -13,10 +13,8 @@
|
||||
$uploader = new FileUploader($include_url . 'uploads/contact/');
|
||||
|
||||
if ($id > 0) {
|
||||
$sql = "SELECT `contact_image` FROM md_contact WHERE company_id = :company_id AND id = :id";
|
||||
$sth = $pdo2->prepare($sql);
|
||||
$sth->execute([':company_id' => $company_id, ':id' => $id]);
|
||||
$uploader->cleanup($sth->fetchColumn(), $data['keep_files'] ?? '');
|
||||
$contact = new ContactManager($pdo2, $company_id);
|
||||
$uploader->cleanup($contact->getContactImage($id), $data['keep_files'] ?? '');
|
||||
}
|
||||
|
||||
$errors = $uploader->upload('contact_image');
|
||||
@@ -50,4 +48,4 @@
|
||||
}
|
||||
|
||||
exit(json_encode($answer));
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user