From: <gi...@ma...> - 2009-04-14 00:46:51
|
The branch, master has been updated via 5019f259ff4de0a823575eaf3018ef7bf4ecbbe0 (commit) from 10040dee738620f69102a48c8497528608b500f9 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 5019f259ff4de0a823575eaf3018ef7bf4ecbbe0 Author: Glenn Henshaw <thr...@lo...> Date: Mon Apr 13 20:35:00 2009 -0400 fix for #10035: Custom multi-selection list fields don't allow deselection - handle case where multi-select list is deselected ----------------------------------------------------------------------- Summary of changes: bug_update.php | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) ----------------------------------------------------------------------- commit 5019f259ff4de0a823575eaf3018ef7bf4ecbbe0 Author: Glenn Henshaw <thr...@lo...> Date: Mon Apr 13 20:35:00 2009 -0400 fix for #10035: Custom multi-selection list fields don't allow deselection - handle case where multi-select list is deselected diff --git a/bug_update.php b/bug_update.php index 43f2a35..14b8d39 100644 --- a/bug_update.php +++ b/bug_update.php @@ -138,8 +138,10 @@ trigger_error( ERROR_EMPTY_FIELD, ERROR ); } - # Only update the field if it is posted - if ( !gpc_isset_custom_field( $t_id, $t_def['type'] ) ) { + # Only update the field if it is posted, + # or if it is empty, and the current value isn't the default + if ( !gpc_isset_custom_field( $t_id, $t_def['type'] ) && + ( custom_field_get_value( $t_id, $f_bug_id ) == $t_def['default_value'] ) ) { continue; } ----------------------------------------------------------------------- -- Mantis Bug Tracker |