Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
e7030bab
Commit
e7030bab
authored
Jan 21, 2007
by
olav%bkor.dhs.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 367649: Deleting an attachment should set isobsolete to 1
Patch by Olav Vitters <olav@bkor.dhs.org> r=LpSolit a=LpSolit
parent
98079c91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
attachment.cgi
attachment.cgi
+4
-2
No files found.
attachment.cgi
View file @
e7030bab
...
...
@@ -804,8 +804,10 @@ sub delete_attachment {
$dbh
->
bz_lock_tables
(
'attachments WRITE'
,
'attach_data WRITE'
,
'flags WRITE'
);
$dbh
->
do
(
'DELETE FROM attach_data WHERE id = ?'
,
undef
,
$attach_id
);
$dbh
->
do
(
'UPDATE attachments SET mimetype = ?, ispatch = ?, isurl = ?
WHERE attach_id = ?'
,
undef
,
(
'text/plain'
,
0
,
0
,
$attach_id
));
$dbh
->
do
(
'UPDATE attachments SET mimetype = ?, ispatch = ?, isurl = ?,
isobsolete = ?
WHERE attach_id = ?'
,
undef
,
(
'text/plain'
,
0
,
0
,
1
,
$attach_id
));
$dbh
->
do
(
'DELETE FROM flags WHERE attach_id = ?'
,
undef
,
$attach_id
);
$dbh
->
bz_unlock_tables
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment