View Issue Details

IDProjectCategoryView StatusLast Update
0003539mantisbtcustom fieldspublic2004-02-29 07:20
Reportervboctor Assigned Tovboctor  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Product Version0.18.1 
Summary0003539: Simple view page shows advanced custom fields
Description

Advanced custom fields are not shown in the simple report bug, and simple update bug. But they are shown on the simple view bug page.

TagsNo tags attached.
Attached Files
3539_simple_view_shows_advanced_custom_fields.diff (784 bytes)   
Index: bug_view_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/bug_view_page.php,v
retrieving revision 1.52
diff -u -r1.52 bug_view_page.php
--- bug_view_page.php	5 Feb 2004 12:45:20 -0000	1.52
+++ bug_view_page.php	7 Feb 2004 11:13:02 -0000
@@ -284,8 +284,8 @@
 	$t_custom_fields_found = false;
 	$t_related_custom_field_ids = custom_field_get_linked_ids( $t_bug->project_id );
 	foreach( $t_related_custom_field_ids as $t_id ) {
+		$t_def = custom_field_get_definition( $t_id );
 		if( !$t_def['advanced'] && custom_field_has_read_access( $t_id, $f_bug_id ) ) {
-			$t_def = custom_field_get_definition( $t_id );
 			$t_custom_fields_found = true;
 ?>
 	<tr <?php echo helper_alternate_class() ?>>

Relationships

has duplicate 0003595 closedvboctor bug_view_page.php: restricted custom fields are shown 

Activities

vboctor

vboctor

2004-02-07 06:19

manager   ~0004973

Patch attached and fixed in CVS. Will be available in the next release.