MantisBT: master 6f9eefd0

Author Committer Branch Timestamp Parent
dregad dregad master 2026-02-16 07:12 master a24c89ef
Affected Issues  0024389: Cannot create Issue when core path is out of MantisBT root
Changeset

Use $g_absolute_path as base for SOAP API includes

Several Commands require SOAP API scripts to function. Until now, the
path to include these was built using dirname( __DIR__, 2 ), but this
does not work when $g_core_path has been moved outside of MantisBT root.

This is because Commands are in $g_core_path/commands, while SOAP API
scripts are in $g_absolute_path/api/soap, which can be in different
trees.

Fixes 0024389

mod - core/classes/FilterConverter.class.php Diff File
mod - core/commands/ConfigsSetCommand.php Diff File
mod - core/commands/IssueAddCommand.php Diff File
mod - core/commands/IssueViewPageCommand.php Diff File
mod - core/commands/ProjectAddCommand.php Diff File
mod - core/commands/ProjectHierarchyAddCommand.php Diff File
mod - core/commands/ProjectUpdateCommand.php Diff File
mod - core/commands/ProjectUsersAddCommand.php Diff File
mod - core/commands/ProjectUsersGetCommand.php Diff File
mod - core/commands/UserTokenCreateCommand.php Diff File
mod - core/commands/UserUpdateCommand.php Diff File
mod - core/commands/VersionGetCommand.php Diff File