View Issue Details

IDProjectCategoryView StatusLast Update
0010915mantisbtprintingpublic2009-10-07 14:19
Reportermosmondor Assigned Todhx  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.0rc1 
Target Version1.2.0rc2Fixed in Version1.2.0rc2 
Summary0010915: Description field data not shown on any table
Description

I tried reports, no description. Tried to add description field to 'view issues' table, no luck either.

Tagspatch
Attached Files
columns_api.patch (1,162 bytes)   
--- a/core/columns_api.php	Fri Sep 18 15:48:40 2009
+++ b/core/columns_api.php	Fri Sep 18 15:48:47 2009
@@ -1131,6 +1131,7 @@
  * @access public
  */
 function print_column_description( $p_bug, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
+	$p_bug->fetch_extended_info();
 	$t_description = string_display_links( $p_bug->description );
 
 	echo '<td class="left">', $t_description, '</td>';
@@ -1144,7 +1145,8 @@
  * @access public
  */
 function print_column_steps_to_reproduce( $p_bug, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
-	$t_steps_to_reproduce = string_display_links( $p_bug->additional_information );
+	$p_bug->fetch_extended_info();
+	$t_steps_to_reproduce = string_display_links( $p_bug->steps_to_reproduce );
 
 	echo '<td class="left">', $t_steps_to_reproduce, '</td>';
 }
@@ -1157,6 +1159,7 @@
  * @access public
  */
 function print_column_additional_information( $p_bug, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
+	$p_bug->fetch_extended_info();
 	$t_additional_information = string_display_links( $p_bug->additional_information );
 
 	echo '<td class="left">', $t_additional_information, '</td>';
columns_api.patch (1,162 bytes)   

Relationships

has duplicate 0010865 closeddhx Print reports broken: 

Activities

Danez

Danez

2009-09-18 09:54

reporter   ~0022966

$p_bug->fetch_extended_info(); does not get called.

I attached a patch that addresses this issue.
It also fixes a bug that print_column_steps_to_reproduce(..) would print "additional_information" instead of "steps_to_reproduce"

mosmondor

mosmondor

2009-09-18 13:41

reporter   ~0022968

view_all_bug_page.php

now displays the information correctly,

print_all_bug_page.php

too

however,

print_all_bug_page_word.php?search=&sort=last_updated&dir=ASC&type_page=html&export=-1&show_flag=0 (word or html export)

still misses description info.

Danez

Danez

2009-09-20 11:28

reporter   ~0022990

I now did an other approach to generally fix this Problem. The Bug-Object now notices if the requested field is extended or not.

Fixed there:
http://git.mantisforge.org/w/mantisbt/dtschinder.git?a=commit;h=36127973a2983e6d34b7d5734dd58d2680fe876f

dhx

dhx

2009-09-22 03:31

reporter   ~0023008

Thanks for fixing this Danez, I've committed your patch to both 1.2.x and 1.3.x (and I've confirmed that the description column now works!).

Related Changesets

MantisBT: master-1.2.x 5b448d2f

2009-09-20 11:20

Danez

Committer: dhx


Details Diff
Fix 0010915: Description field data not shown

class BugData now notices if the requested field is an extended or not, and then fetches the extended data if needed.
A small bug was also fixed in the print function for steps_to_reproduce. Printed additional_info instead of steps_to_reproduce.

Signed-off-by: David Hicks <hickseydr@optusnet.com.au>
Affected Issues
0010915
mod - issues_rss.php Diff File
mod - csv_export.php Diff File
mod - plugins/XmlImportExport/pages/export.php Diff File
mod - core/bug_api.php Diff File
mod - core/columns_api.php Diff File

MantisBT: master f9ab82ea

2009-09-20 11:20

Danez

Committer: dhx


Details Diff
Fix 0010915: Description field data not shown

class BugData now notices if the requested field is an extended or not, and then fetches the extended data if needed.
A small bug was also fixed in the print function for steps_to_reproduce. Printed additional_info instead of steps_to_reproduce.

Signed-off-by: David Hicks <hickseydr@optusnet.com.au>
Affected Issues
0010915
mod - core/bug_api.php Diff File
mod - issues_rss.php Diff File
mod - csv_export.php Diff File
mod - plugins/XmlImportExport/pages/export.php Diff File
mod - core/columns_api.php Diff File