View Issue Details

IDProjectCategoryView StatusLast Update
0009715mantisbtprintingpublic2009-01-15 11:26
ReporterDom75 Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.1.1 
Fixed in Version1.2.0a3 
Summary0009715: No Target Version in the word/excel/ie export
Description

Since the 1.1.x version, the field "target_version" has been integrated. But the field is not displayed in the print_all_bugpage*.php page.

Tagspatch
Attached Files
9715.patch (1,338 bytes)   
Index: core/columns_api.php
===================================================================
--- core/columns_api.php	(revision 5740)
+++ core/columns_api.php	(working copy)
@@ -57,6 +57,7 @@
 		'status',
 		'steps_to_reproduce',
 		'summary',
+		'target_version',
 		'version',
 		'view_state',
 	);
Index: print_all_bug_page_word.php
===================================================================
--- print_all_bug_page_word.php	(revision 5740)
+++ print_all_bug_page_word.php	(working copy)
@@ -293,8 +293,30 @@
 	<td class="print">
 		<?php echo get_enum_element( 'eta', $t_bug->eta ) ?>
 	</td>
-	<td class="print" colspan="4">&nbsp;</td>
+	<td class="print-category">
+		<?php echo lang_get( 'fixed_in_version' ) ?>:
+	</td>
+	<td class="print">
+		<?php echo $t_bug->fixed_in_version ?>
+	</td>
+	<td class="print" colspan="2">&nbsp;</td>
+
 </tr>
+<tr class="print">
+	<td class="print-category">
+		&nbsp;
+	</td>
+	<td class="print">
+		&nbsp;
+	</td>
+	<td class="print-category">
+		<?php echo lang_get( 'target_version' ) ?>:
+	</td>
+	<td class="print">
+		<?php echo $t_bug->target_version ?>
+	</td>
+	<td class="print" colspan="2">&nbsp;</td>
+</tr>
 <?php
 $t_related_custom_field_ids = custom_field_get_linked_ids( $t_bug->project_id );
 foreach( $t_related_custom_field_ids as $t_custom_field_id ) {
9715.patch (1,338 bytes)   

Activities

gotdalife

gotdalife

2008-10-30 23:21

reporter   ~0019737

Attached a patch to implement this enhancement. Please review and check in if everything's in place.

vboctor

vboctor

2008-10-31 00:03

manager   ~0019738

Did you test the CSV, Excel, View Issues, and Print Issues? I can see the patch fixing the Word export. Did the others automatically work?

gotdalife

gotdalife

2008-10-31 10:09

reporter   ~0019744

I checked and Excel, CSV, and Print Issues are fixed with this patch.

Print Issues automatically worked with the Word export.
As for CSV & Excel, there's a small addition in that patch that addresses the problem. "Target_Version" wasn't specified in the list of columns in columns_api.

(But the user needs to be add "target_version" in manage_config_columns_page.php "CSV Columns" and "Excel Columns".)

Related Changesets

MantisBT: master 6df2dfee

2008-11-11 01:52

vboctor


Details Diff
Fixes 0009715: No Target Version in the word/excel/ie export. Affected Issues
0009715
mod - print_all_bug_page_word.php Diff File
mod - core/columns_api.php Diff File