diff --git a/core/custom_field_api.php b/core/custom_field_api.php index 7ff49fbc0f..423da867dc 100644 --- a/core/custom_field_api.php +++ b/core/custom_field_api.php @@ -645,6 +645,7 @@ function custom_field_get_id_from_name( $p_field_name ) { $t_result = db_query_bound( $query, array( $p_field_name ) ); if( db_num_rows( $t_result ) == 0 ) { + $g_cache_name_to_id_map[$p_field_name] = false; return false; }