View Issue Details

IDProjectCategoryView StatusLast Update
0009475mantisbtotherpublic2009-01-15 11:25
ReporterSergiodf Assigned Todaryn  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.0a2 
Target Version1.2.0a3Fixed in Version1.2.0a3 
Summary0009475: Error 403 and 401 trying to update bug catery from "View issues" page
Description

When i try to update the category of a bug from the search results list in View issues page, the following errors occur:
«
APPLICATION WARNING #403: Database field 'category' not found.

(Mantis Logo)

APPLICATION ERROR 0000401

Database query failed. Error received from database was #1054: Unknown column 'category' in 'field list' for the query: UPDATE mantis_bug_table
SET category='163'
WHERE id=1842

Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.
»

Steps To Reproduce
  1. Go to 'View issues' page.
  2. Ensure there is al least one bug listed.
  3. Check any of the bugs listed.
  4. Select 'Update Category' in the (drop-down) list of actions and click 'Ok' button.
  5. In the new page (bug_actiongroup_page.php), select a category and press 'Update category' button.
  6. Error occurs.
Additional Information

The bug is in bug_actiongroup.php, line 196. Code is:
bug_set_field( $t_bug_id, 'category', $f_category );

The line should be:
bug_set_field( $t_bug_id, 'category_id', $f_category );

I made this change and i can update the category now.

Tagspatch

Activities

Sergiodf

Sergiodf

2008-08-04 10:04

reporter   ~0019018

I found this in 1.2.0a1, but it is in CVS also.

daryn

daryn

2008-08-05 23:09

reporter   ~0019052

Fixed in http://mantisbt.svn.sourceforge.net/viewvc/mantisbt?view=rev&revision=5499

Related Changesets

MantisBT: master e8fef90f

2008-08-05 23:07

daryn


Details Diff
Fix bug 9475, error on bug_actiongroup.php for Update Category

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