Skip to content

Commit

Permalink
Fix: 0004687: Closing an item deletes custom-field-value if type of c…
Browse files Browse the repository at this point in the history
…ustom-field is CHECKBOX or MULTILIST

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@3106 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
mantis committed Nov 7, 2004
1 parent f793a3b commit 6893762
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bug_update.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: bug_update.php,v 1.76 2004-10-08 18:57:51 thraxisp Exp $
# $Id: bug_update.php,v 1.77 2004-11-07 23:18:49 prichards Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -87,6 +87,11 @@
$t_def = custom_field_get_definition( $t_id );
$t_custom_field_value = gpc_get_custom_field( "custom_field_$t_id", $t_def['type'], null );

# Only update the field if it would have been display for editing
if( !( $t_def['display_' . $t_custom_status_label] || $t_def['require_' . $t_custom_status_label] ) ) {
continue;
}

# Only update the field if it is posted
if ( $t_custom_field_value === null ) {
continue;
Expand Down

0 comments on commit 6893762

Please sign in to comment.