Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cache obsolete custom field names

If a custom field name changed, custom_field_get_id_from_name() keeps
asking the database for an id over and over again (e.g. for every
change of the field in the bug history) to decide if it should be
displayed.

Thanks to user nimmich for noticing the issue and providing a patch.

Fixes #15265
  • Loading branch information...
commit d73161841eb4b95997bc64cf0000655989a2dd67 1 parent d080705
@dregad dregad authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  core/custom_field_api.php
View
1  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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.