Update of /cvsroot/mantisbt/mantisbt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11117
Modified Files:
manage_config_work_threshold_page.php
manage_config_workflow_page.php
Log Message:
fix display for users that can't adjust the parameters
Index: manage_config_workflow_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/manage_config_workflow_page.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- manage_config_workflow_page.php 23 Mar 2005 23:57:51 -0000 1.4
+++ manage_config_workflow_page.php 11 Apr 2005 17:08:04 -0000 1.5
@@ -132,10 +132,10 @@
list( $t_status_id, $t_status_label ) =
explode_enum_arr( $t_status );
if ( NEW_ == $t_status_id ) {
$t_level = config_get( 'report_bug_threshold' );
- $t_can_change = ( $t_access <=
config_get_access( 'report_bug_threshold' ) );
+ $t_can_change = ( $t_access >=
config_get_access( 'report_bug_threshold' ) );
}else{
$t_level = access_get_status_threshold(
$t_status_id );
- $t_can_change = ( $t_access <=
config_get_access( 'set_status_threshold' ) );
+ $t_can_change = ( $t_access >=
config_get_access( 'set_status_threshold' ) );
}
if ( $t_can_change ) {
Index: manage_config_work_threshold_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/manage_config_work_threshold_page.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- manage_config_work_threshold_page.php 3 Apr 2005 12:43:31 -0000
1.4
+++ manage_config_work_threshold_page.php 11 Apr 2005 17:08:03 -0000
1.5
@@ -126,11 +126,7 @@
echo '</select> </td>';
$t_show_submit = true;
} else {
- if ( ON == config_get( $p_threshold ) ) {
- $t_value = '<td>' . get_enum_to_string( lang_get(
$p_enum . '_enum_string' ), config_get_access( $p_threshold ) ) . ' </td>';
- } else {
- $t_value = ' ';
- }
+ $t_value = get_enum_to_string( lang_get( $p_enum .
'_enum_string' ), config_get( $p_threshold ) ) . ' ';
echo '<td class="left" colspan="' . count( $t_access_levels
) . '">' . $t_value . '</td>';
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
|
ii
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|