MantisBT: master-1.3.x 404e3df8

Author Committer Branch Timestamp Parent
dregad dregad master-1.3.x 2019-06-05 01:15 master-1.3.x 7b06ee38
Affected Issues  0025856: SOAP API return value does not match definition in WSDL
Changeset

Fix mc_project_version_delete() return value

The function's return type does not match the WSDL definition.

This is a regression introduced by a80f447687722b52160d00c96c21a5be5f4329e1
which changed version_delete()'s return type from true (bool) to void
Since mc_project_version_delete() actually returned that, it causes a
side effect because void == NULL == false.

To avoid an unnecessary and potentially breaking change in the WSDL, the
function now returns true.

Fixes 0025856

(cherry picked from commit 5039c7b86a21f41a64c904e3eb16e0eb25ac2cb0)

mod - api/soap/mc_project_api.php Diff File