MantisBT: master 6c51098a

Author Committer Branch Timestamp Parent
c_schmitz community master 2026-11-21 09:52 master 73e6315c
Affected Issues  0037460: Adding a note to a read-only issue is denied when "All Projects" is selected, although allowed by the project's threshold
Changeset

Use issue's project for update_readonly_bug_threshold

bug_is_readonly() read bug_readonly_status_threshold for the issue's
project, but update_readonly_bug_threshold for the user's currently
selected project. When the threshold is overridden per project, a user
with "All Projects" (or another project) selected was told the issue is
read-only (APPLICATION ERROR #1103) when adding a note, although the
note form was shown, since view.php overrides the current project.

Read both thresholds for the issue's project.

Fixes 0037460, PR https://github.com/mantisbt/mantisbt/pull/2297

mod - core/bug_api.php Diff File