View Issue Details

IDProjectCategoryView StatusLast Update
0004012mantisbtbugtrackerpublic2004-07-07 18:19
ReporterGregDeToulouse Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Versiongit trunk 
Fixed in Version0.19.0a1 
Summary0004012: Problem with Custom Fields in Report
Description

On the "Print Reports" page when I chose "Word View" there is a problem with custom fields :
print_all_bug_page_word.php needs the variable $t_project_id to get custom fields.
When you have choosen "All Projects" helper_get_current_project returns 0 so the SQL request which needs the Project Id to get the Custom Fields of the current bug cannot find it.

helper_get_current_project shouldn't be used for the print report. Inside the "for" it would be better to get the project id for each bug.

In the same file $project_name = project_get_field( $v_project_id, 'name' ); doesn't return anything because $v_project_id has no value.
And this variable is never used.

TagsNo tags attached.

Activities

vboctor

vboctor

2004-07-07 06:41

manager   ~0005891

Fixed in CVS. Will be included in 0.19.0.

Related Changesets

MantisBT: master 4b8efde3

2004-07-07 07:44

vboctor


Details Diff
Fix 0004012: Problem with Custom Fields in Report.

M print_all_bug_page_word.php
- The retrieved custom fields were dependent on the current project rather than the project to which the issues belong.

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