diff --git a/core_print_API.php b/core_print_API.php
index 5e3b49ed4a..9287b9b49b 100644
--- a/core_print_API.php
+++ b/core_print_API.php
@@ -407,15 +407,22 @@ function print_version_option_list( $p_version="" ) {
}
}
# --------------------
- function print_enum_string_option_list( $p_enum_string, $p_val=0 ) {
- $t_arr = explode_enum_string( $p_enum_string);
+ # select the proper enum values based on the input parameter
+ # we use variable variables in order to achieve this
+ function print_enum_string_option_list( $p_enum_name, $p_val=0 ) {
+ $g_var = "g_".$p_enum_name."_enum_string";
+ $s_var = "s_".$p_enum_name."_enum_string";
+ global $$g_var, $$s_var;
+
+ $t_arr = explode_enum_string( $$g_var );
$enum_count = count( $t_arr );
for ($i=0;$i<$enum_count;$i++) {
- $t_elem = explode_enum_arr( $t_arr[$i] );
+ $t_elem = explode_enum_arr( $t_arr[$i] );
+ $t_elem2 = get_enum_element( $$s_var, $t_elem[0] );
if ( $t_elem[0] == $p_val ) {
- PRINT "";
+ PRINT "";
} else {
- PRINT "";
+ PRINT "";
}
} # end for
}
diff --git a/doc/ChangeLog b/doc/ChangeLog
index cb2ff567e5..2831db54c8 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -15,6 +15,7 @@ Mantis
* Modified news posting to properly limit project lists for non Administrators.
* Modified reset password functionality to use g_send_reset_password to determine whether a password is set to blank or emailed to the user.
* Modified color legend is now generated form the $g_status_enum_string variable.
+ * Modified print_enum_string_option_list() to work better.
* Added Hungarian translation.
* Added g_bug_link_tag to let users customize how to create bug links.
* Added a "jump to bugnotes" quicklink at the top of the view bug pages.
diff --git a/manage_create_user_page.php b/manage_create_user_page.php
index f03dc03125..613fdcdfe6 100644
--- a/manage_create_user_page.php
+++ b/manage_create_user_page.php
@@ -62,7 +62,7 @@