MantisBT: master 69cc2cfc

Author Committer Branch Timestamp Parent
dregad dregad master 2023-09-06 04:06 master 8fac62fc
Affected Issues  0030415: REST API: Add API to Get / Delete / Update versions
 0032909: Internal application error when editing a Project Version.
Changeset

Bad timestamp in VersionGetCommand::VersionToArray()

Missing ApiObjectFactory::$soap = false initialization causes the
version's date_order to be initialized as a XSD_DATETIME SoapVar instead
of an ISO-formatted date string as expected.

As long as the PHP SOAP Extension is available, this does not cause any
actual side effects, because

  • the return value is not used when the Commands are used from within
    Mantis Core
  • REST API initializes ApiObjectFactory::$soap = false so date_order is
    returned in the correct format.

If the SOAP extension is not available, Mantis triggers an internal
application error when this function is called.

Fixes 0032909, 0030415

mod - core/commands/VersionGetCommand.php Diff File