Skip to content

Commit

Permalink
Fix regression editing issues with custom fields
Browse files Browse the repository at this point in the history
Editing issues with custom fields throws system notice
introduced by c845166
Regression in 1.3.4

Fixes: #21964
  • Loading branch information
cproensa committed Nov 27, 2016
1 parent 81ce69c commit fcb8c3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/custom_field_api.php
Expand Up @@ -946,8 +946,8 @@ function custom_field_get_value( $p_field_id, $p_bug_id ) {
}

# A null value means a cached non existant value. It must be checked with care.
if( isset( $g_cache_cf_bug_values[$c_bug_id] )
&& !array_key_exists( $c_field_id, $g_cache_cf_bug_values[$c_bug_id] ) ) {
if( !isset( $g_cache_cf_bug_values[$c_bug_id] )
|| !array_key_exists( $c_field_id, $g_cache_cf_bug_values[$c_bug_id] ) ) {
custom_field_cache_values( array( $c_bug_id ), array( $c_field_id ) );
}

Expand Down

0 comments on commit fcb8c3c

Please sign in to comment.