| Additional Information | diff --exclude=CVS -u -r mantis-sf-mirror/manage_config_email_set.php mantis/manage_config_email_set.php
--- mantis-sf-mirror/manage_config_email_set.php 2006-03-15 16:44:39.296875000 +0800
+++ mantis/manage_config_email_set.php 2006-03-15 16:41:43.468750000 +0800
@@ -100,7 +100,7 @@
$t_default_flags['threshold_max'] = $t_default_max;
$t_existing_default_flags = config_get( 'default_notify_flags' );
-
if ( $t_existing_default_flags != $t_default_flags ) { # only set the flags if they are different
-
if ( $t_existing_default_flags != $t_default_flags || $f_actions_access != config_get_access( 'default_notify_flags' ) ) { # only set the flags if they are different
config_set( 'default_notify_flags', $t_default_flags, NO_USER, $t_project, $f_actions_access );
}
} else {
@@ -128,7 +128,7 @@
}
if ( isset( $t_notify_flags ) ) {
$t_existing_flags = config_get( 'notify_flags' );
-
if ( $t_existing_flags != $t_notify_flags ) { # only set the flags if they are different
-
if ( $t_existing_flags != $t_notify_flags || $f_actions_access != config_get_access( 'notify_flags' ) ) { # only set the flags if they are different
config_set( 'notify_flags', $t_notify_flags, NO_USER, $t_project, $f_actions_access );
}
}
diff --exclude=CVS -u -r mantis-sf-mirror/manage_config_work_threshold_set.php mantis/manage_config_work_threshold_set.php
--- mantis-sf-mirror/manage_config_work_threshold_set.php 2006-03-15 16:44:39.312500000 +0800
+++ mantis/manage_config_work_threshold_set.php 2006-03-15 16:41:43.484375000 +0800
@@ -52,12 +52,13 @@
@@debug @@ var_dump($$t_access_level, $t_lower_threshold, $t_array_threshold); echo ' ';
}
$t_existing_threshold = config_get( $p_threshold );
-
$t_existing_access = config_get_access( $p_threshold );
if ( -1 == $t_lower_threshold ) {
-
if ( $t_existing_threshold != $t_array_threshold ) {
-
if ( $t_existing_threshold != $t_array_threshold || $t_existing_access != $f_access ) {
config_set( $p_threshold, $t_array_threshold, NO_USER, $t_project, $f_access );
}
} else {
-
if ( $t_existing_threshold != $t_lower_threshold ) {
-
if ( $t_existing_threshold != $t_lower_threshold || $t_existing_access != $f_access ) {
config_set( $p_threshold, $t_lower_threshold, NO_USER, $t_project, $f_access );
}
}
@@ -74,7 +75,7 @@
$f_flag = ( OFF == $f_flag ) ? OFF : ON;
@@debug @@ echo " for $p_threshold "; var_dump($f_flag, $f_access); echo ' ';
-
if ( $f_flag != config_get( $p_threshold ) ) {
-
if ( $f_flag != config_get( $p_threshold ) || $f_access != config_get_access( $p_threshold ) ) {
config_set( $p_threshold, $f_flag, NO_USER, $t_project, $f_access );
}
}
@@ -89,7 +90,7 @@
$f_access = gpc_getint( 'access' . $p_threshold );
@@debug @@ echo " for $p_threshold "; var_dump($f_flag, $f_access); echo ' ';
-
if ( $f_flag != config_get( $p_threshold ) ) {
-
if ( $f_flag != config_get( $p_threshold ) || $f_access != config_get_access( $p_threshold ) ) {
config_set( $p_threshold, $f_flag, NO_USER, $t_project, $f_access );
}
}
diff --exclude=CVS -u -r mantis-sf-mirror/manage_config_workflow_set.php mantis/manage_config_workflow_set.php
--- mantis-sf-mirror/manage_config_workflow_set.php 2006-03-15 16:44:39.359375000 +0800
+++ mantis/manage_config_workflow_set.php 2006-03-15 16:41:43.531250000 +0800
@@ -32,7 +32,7 @@
if( config_get_access( $t_threshold ) <= $t_access ) {
$f_value = gpcget( 'threshold' . $t_threshold );
$f_access = gpcget( 'access' . $t_threshold );
-
if ( $f_value != config_get( $t_threshold ) ) {
-
if ( $f_value != config_get( $t_threshold ) || $f_access != config_get_access( $t_threshold ) ) {
config_set( $t_threshold, $f_value, NO_USER, $t_project, $f_access );
}
}
@@ -74,7 +74,7 @@
$t_workflow[$t_state] = $t_workflow_row;
}
}
-
if ( $t_workflow != config_get( 'status_enum_workflow' ) ) {
-
if ( $t_workflow != config_get( 'status_enum_workflow' ) || $f_access != config_get_access( 'status_enum_workflow' ) ) {
config_set( 'status_enum_workflow', $t_workflow, NO_USER, $t_project, $f_access );
}
}
|
|---|