View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003595 | mantisbt | custom fields | public | 2004-02-24 06:43 | 2004-02-29 07:17 |
| Reporter | yarick123 | Assigned To | vboctor | ||
| Priority | normal | Severity | major | Reproducibility | sometimes |
| Status | closed | Resolution | duplicate | ||
| Summary | 0003595: 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. | ||||
| Tags | No 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() ?>>
| ||||