Closed
Bug 460509
Opened 16 years ago
Closed 16 years ago
Deleting a product with bugs fails because it hasn't loaded Bugzilla::Bug
Categories
(Bugzilla :: Administration, task)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.4
People
(Reporter: mkanat, Assigned: mkanat)
References
Details
(Keywords: regression)
Attachments
(1 file)
666 bytes,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
When you try to delete a product, you get an error about "Can't locate 'new' in package 'Bugzilla::Bug'". This is because there's a missing require statement inside of remove_from_db.
Assignee | ||
Comment 1•16 years ago
|
||
Assignee: administration → mkanat
Status: NEW → ASSIGNED
Attachment #343592 -
Flags: review?(LpSolit)
Comment 2•16 years ago
|
||
I cannot reproduce, at least using editproducts.cgi. Do you mean using e.g. webservices?
Comment 3•16 years ago
|
||
Anyway, the code you are pointing to only exists in 3.3. In 3.2, this code is in editproducts.cgi, which correctly calls |use Bugzilla::Bug|.
Depends on: 313122
Target Milestone: Bugzilla 3.2 → Bugzilla 3.4
Assignee | ||
Comment 4•16 years ago
|
||
I reproduced it on the web interface. The product has to have bugs in it, and you have to have allowbugdeletion on.
Summary: Deleting a product fails because it hasn't loaded Bugzilla::Bug → Deleting a product with bugs fails because it hasn't loaded Bugzilla::Bug
Comment 5•16 years ago
|
||
My comment about editproducts.cgi was for 3.2, which is working fine. I can indeed reproduce the bug on tip using the UI. But the culprit is not bug 313122 as I first thought, but bug 448593 which removes |use Bugzilla::Bug| from editproducts.cgi. The good news is that it's still a tip only issue. :)
Keywords: regression
Comment 6•16 years ago
|
||
Comment on attachment 343592 [details] [diff] [review]
v1
r=LpSolit
Attachment #343592 -
Flags: review?(LpSolit) → review+
Updated•16 years ago
|
Flags: approval+
Assignee | ||
Comment 7•16 years ago
|
||
Checking in Bugzilla/Product.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Product.pm,v <-- Product.pm
new revision: 1.32; previous revision: 1.31
done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•