View Issue Details

IDProjectCategoryView StatusLast Update
0003020mantisbtbugtrackerpublic2003-12-13 04:41
Reportervboctor Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.18.0a3 
Summary0003020: Error when deleting a bug
Description

SYSTEM WARNING: Supplied argument is not a valid MySQL result resource
(database_api.php: line 118)

Note that the bug is deleted successfully.

TagsNo tags attached.

Activities

vboctor

vboctor

2003-02-28 16:00

manager   ~0003885

I tried deleting another bug and it worked without problems. I believe the difference is that the first one had bugnotes.

vboctor

vboctor

2003-02-28 17:06

manager   ~0003894

In core/bugnote_api.php, function bugnote_delete_all():

Delete the corresponding bugnote texts

$query = "DELETE
FROM $t_bugnote_text_table
WHERE id='$t_bugnote_text_id'";
-$result = db_query( $query );
+db_query( $query );

This should fix the problem.

vboctor

vboctor

2003-03-01 13:12

manager   ~0003899

Fixed in CVS. Will be included in 0.18.0a4.

Related Changesets

MantisBT: master e8a2fa04

2003-03-01 07:11

vboctor


Details Diff
Fix 0003020: Error when deleting a bug.

M core/bugnote_api.php
- (bugnote_delete_all): $result variable was overwritten by another query.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2062 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0003020
mod - doc/ChangeLog Diff File
mod - core/bugnote_api.php Diff File