function update_problem_type_for_event(e, event, history) {
    $("select#problem_type option:selected").each(function () {
        event.problem_type = $.trim($(this).val());
    });
}