MantisBT: master e108a253

Author Committer Branch Timestamp Parent
dregad dregad master 2026-09-01 19:03 master cd2b4629
Affected Issues  0032449: REST API: Support linking/unlinking custom fields to projects
 0036889: Add database caching to more functions.
Changeset

Fix PHP warning in custom_field_cache_row()

It can happen that $g_cache_custom_field does NOT contain an entry for
a given custom field id, causing an Undefined array key warning.

This is likely a regression introduced by issue 0036889 (commit
71404459cec835ff068f1812b52da9ebea223abb), which introduced an early
return from the function; previously, the key was guaranteed to exist.

Adding a null-coalescing operator fixes the problem.

Issue 0032449

mod - core/custom_field_api.php Diff File