View Issue Details

IDProjectCategoryView StatusLast Update
0003595mantisbtcustom fieldspublic2004-02-29 07:17
Reporteryarick123 Assigned Tovboctor  
PrioritynormalSeveritymajorReproducibilitysometimes
Status closedResolutionduplicate 
Summary0003595: bug_view_page.php: restricted custom fields are shown
Description

If there is restriction to read on some custom fields, these fields can be shown in bug_view_page.php.

I am attaching patch, fixing this problem.

TagsNo tags attached.
Attached Files
mantis01801_custom_field_view_fix.patch (1,044 bytes)   
diff -rc mantis-0.18.1/bug_view_page.php mantis/bug_view_page.php
*** mantis-0.18.1/bug_view_page.php	2004-02-05 13:45:20.000000000 +0100
--- mantis/bug_view_page.php	2004-02-17 15:28:28.000000000 +0100
***************
*** 284,291 ****
  	$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 ) {
  		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() ?>>
--- 284,291 ----
  	$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_custom_fields_found = true;
  ?>
  	<tr <?php echo helper_alternate_class() ?>>

Relationships

duplicate of 0003539 closedvboctor Simple view page shows advanced custom fields 

Activities

yarick123

yarick123

2004-02-24 06:46

reporter   ~0005083

this bug is in mantis 0.18.1

vboctor

vboctor

2004-02-24 07:57

manager   ~0005084

The fix for 0003539 fixes this one as well.