diff --git a/include/utils.php b/include/utils.php index 47d6f9ad2b7..fc972dba82a 100755 --- a/include/utils.php +++ b/include/utils.php @@ -1888,7 +1888,7 @@ function get_select_options_with_id_separate_key($label_list, $key_list, $select // the system is evaluating $selected_key == 0 || '' to true. Be very careful when changing this. Test all cases. // The bug was only happening with one of the users in the drop down. It was being replaced by none. if ( - ($option_key !== '' && $selected_key === $option_key) || ( + ($option_key !== '' && $selected_key == $option_key) || ( $option_key === '' && (($selected_key === '' && !$massupdate) || $selected_key === '__SugarMassUpdateClearField__') ) || (is_array($selected_key) && in_array($option_key, $selected_key)) ) {