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
4f023328
Commit
4f023328
authored
Aug 21, 2011
by
Edmund Yan
Committed by
Frédéric Buclin
Aug 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 679516: Call Bugzilla::Object->remove_from_db when deleting an object
r/a=LpSolit
parent
e7d28afb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
10 deletions
+3
-10
Field.pm
Bugzilla/Field.pm
+1
-1
Milestone.pm
Bugzilla/Milestone.pm
+1
-1
Product.pm
Bugzilla/Product.pm
+1
-1
Status.pm
Bugzilla/Status.pm
+0
-7
No files found.
Bugzilla/Field.pm
View file @
4f023328
...
...
@@ -948,7 +948,7 @@ sub remove_from_db {
}
# Once we reach here, we should be OK to delete.
$
dbh
->
do
(
'DELETE FROM fielddefs WHERE id = ?'
,
undef
,
$self
->
id
);
$
self
->
SUPER::
remove_from_db
(
);
my
$type
=
$self
->
type
;
...
...
Bugzilla/Milestone.pm
View file @
4f023328
...
...
@@ -158,7 +158,7 @@ sub remove_from_db {
}
}
$
dbh
->
do
(
'DELETE FROM milestones WHERE id = ?'
,
undef
,
$self
->
id
);
$
self
->
SUPER::
remove_from_db
(
);
}
################################
...
...
Bugzilla/Product.pm
View file @
4f023328
...
...
@@ -317,7 +317,7 @@ sub remove_from_db {
}
}
$
dbh
->
do
(
"DELETE FROM products WHERE id = ?"
,
undef
,
$self
->
id
);
$
self
->
SUPER::
remove_from_db
(
);
$dbh
->
bz_commit_transaction
();
...
...
Bugzilla/Status.pm
View file @
4f023328
...
...
@@ -76,14 +76,7 @@ sub create {
sub
remove_from_db
{
my
$self
=
shift
;
my
$dbh
=
Bugzilla
->
dbh
;
my
$id
=
$self
->
id
;
$dbh
->
bz_start_transaction
();
$self
->
SUPER::
remove_from_db
();
$dbh
->
do
(
'DELETE FROM status_workflow
WHERE old_status = ? OR new_status = ?'
,
undef
,
$id
,
$id
);
$dbh
->
bz_commit_transaction
();
delete
Bugzilla
->
request_cache
->
{
status_bug_state_open
};
}
...
...
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