MantisBT: master 00f4f1fc

Author Committer Branch Timestamp Parent
dregad dregad master 2023-03-01 12:08 master c453af21
Affected Issues  0032831: Remove unnecessary check on Version Id
Changeset

Remove unnecessary check on Version Id

It does not make any sense for prepare_version_string() to make a
strict-type comparison of the Version Id against false.

The same goes for the null Version Id check in version_full_name().

The Caller should take care of passing a valid Version. If it is not,
just throw an Exception.

Fixes 0032831

mod - core/prepare_api.php Diff File
mod - core/version_api.php Diff File
mod - manage_proj_edit_page.php Diff File