I found that with MyReport the default value of VIEW_STATUS is always set to Public, while I would like to have only PRIVATE report.
I found the code on [color=
#006600][b]bug_report_inc.php[/b][/color] file which is responsible for this. I modified just moving the &
#039;checked&
#039; istruction down to PRIVATE section.
[i]case &
#039;view_status&
#039;:
?>
<input <?php echo helper_get_tab_index() ?> type="radio" name="view_state" value="<?php echo VS_PUBLIC ?>" [b][s][color=#FF0000]checked="checked"[/color][/s][/b]/> <?php echo lang_get( &
#039;public&
#039; ) ?>
<input <?php echo helper_get_tab_index() ?> type="radio" name="view_state" value="<?php echo VS_PRIVATE ?>" [b][color=
#0033CC]checked="checked"[/color][/b] /> <?php echo lang_get( &
#039;private&
#039; ) ?>
<?php
break;[/i]
Now all reports are by default with private flag set.
In my opinion the best way to handling the Private vs Public status flag should be to read the type of Project (Private/Public) and set the view_status accordinly.
I&
#039;m not an expert but I could try to do something with some input if necessary.
Cris by ArtGroup
Mantis: 1.1.2
PHP: 5.2.5
SQL: MySQL 5.0.51a
OS: XP SP2