MantisBT: master-2.27 01f3d24e

Author Committer Branch Timestamp Parent
dregad dregad master-2.27 2025-04-20 12:20 master-2.27 a7fe63fd
Affected Issues  0034683: REST POST /issues allows creation of Issue when invalid Category is specified
 0035668: can't change issue category to "no category" via rest api
Changeset

Fix regression in mci_get_category_id()

REST API was not allowing to unset the Category when updating an Issue
with $g_allow_no_category = ON with a payload {"category": {"id": 0}}.

Regression in mci_get_category_id() function, introduced by commit
656f93eebaf033f4b5bf34f17487db6346f12d8a (Issue 0034683).

Fixes 0035668

Backported from master branch (cherry picked commits f97ee460815ff14b31462d1da0a48405d0acb363 and
1ccc4205e50c23d47009073d85423d29c4cae449).

mod - api/soap/mc_api.php Diff File