MantisBT: master a939b3e7

Author Committer Branch Timestamp Parent
dregad dregad master 2012-02-21 11:39 master 57e20055
Affected Issues  0013938: Error when editing issue having version not existing in current project
Changeset

Avoid error when editing bug with invalid version

When editing an issue having the Product Version field set to a version
number which is not defined in the issue's current project (which can
happen when the issue has been moved from another project, or a version
has been deleted from the current project), APPLICATION ERROR 1601 -
Version "" not found occurs.

The error occurs because the version field in the bug table is not
cleared when the issue is moved, so when Mantis is building the version
selection list to edit the bug, it tries to add the version defined in
it to the list, which triggers the error since that version does not
exist in the current project.

Regression caused by commit 0ffb20f8807fc600750690e201ebf5fb325e7bfc

Fixes 0013938

mod - core/print_api.php Diff File