MantisBT: master 1c4d1524

Author Committer Branch Timestamp Parent
dregad dregad master 2021-12-23 14:11 master 2a47199f
Affected Issues  0022555: Regression in custom field sorting
 0029413: APPLICATION ERROR 1300 Custom field not found with case-sensitive database
Changeset

Custom field id lookup by name now case-insensitive

The $g_cache_name_to_id_map now uses lowercase custom field names as key
which prevents APPLICATION ERROR 1300 Custom field not found when using
a case-sensitive database.

This is a follow-up on issue 0022555, which did not properly fix the
problem (see commit c612d8da318a95bd2d4b8d9b6b6f4329d12e86fa).

Fixes 0029413

Ported from master-2.25 branch commit 6b9f68333bb3b7df085fe3ef830e331de62c7f03,
replacing if(isset()) construct by null-coalescing operator.

mod - core/custom_field_api.php Diff File