projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eca5cfd
)
*** empty log message ***
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Thu, 8 Jan 2009 01:27:27 +0000
(
01:27
+0000)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Thu, 8 Jan 2009 01:27:27 +0000
(
01:27
+0000)
admin/attachments.php
patch
|
blob
|
history
diff --git
a/admin/attachments.php
b/admin/attachments.php
index 8b06b05ab5be5e3449a0c138892e0522cee47491..5ecc7c5aa3f245301128266558340bd08e2a8c86 100644
(file)
--- a/
admin/attachments.php
+++ b/
admin/attachments.php
@@
-125,6
+125,10
@@
if ($Mode == 'ADD_ITEM' || $Mode == 'UPDATE_ITEM')
if ($Mode == 'Delete')
{
+ $row = get_attachment($selected_id);
+ $dir = $comp_path."/".user_company(). "/attachments";
+ if (file_exists($dir."/".$row['unique_name']))
+ unlink($dir."/".$row['unique_name']);
$sql = "DELETE FROM ".TB_PREF."attachments WHERE id = $selected_id";
db_query($sql, "Could not delete attachment");
display_notification(_("Attachment has been deleted."));