MantisBT: master 957ef4ff

Author Committer Branch Timestamp Parent
dregad dregad master 2023-08-18 19:20 master 49b6c809
Affected Issues  0032835: REST API errors when attempting to add or delete issue relationships
Changeset

Exception if relationship type id does not exist

IssueRelationshipAddCommand checks for invalid relationship name in the
payload, but lacks the same check when using a relationship id.

This lets the API create invalid relationships that can't be deleted and
cause errors when viewing the related Issues in the GUI.

Also changed the error code used for invalid rel type, to make it
consistent with invalid rel name.

Fixes 0032835

mod - core/commands/IssueRelationshipAddCommand.php Diff File
mod - core/relationship_api.php Diff File