MantisBT: master 8df25e99

Author Committer Branch Timestamp Parent
vboctor vboctor master 2017-04-26 18:23 master b0cb7ba1
Changeset

REST: Handle version as string or object

  • Refactor code for validating and looking up version in db.
  • Re-use the same logic for version, fixed_in_version and target_version.
  • Support version as string, object with id, object with name, object with id and name (id wins).
  • Don’t set invalid versions, default or error based on configuration.
  • Added test cases for versions.
mod - api/soap/mc_api.php Diff File
mod - api/soap/mc_issue_api.php Diff File
mod - tests/rest/RestIssueAddTest.php Diff File