Skip to content

Merge release/17.9 into release/18.0 - #27398

Merged
oliverguenther merged 3 commits into
release/18.0from
merge-release/17.9-20261127074402
Nov 27, 2026
Merged

oliverguenther merged 3 commits into
release/18.0from
merge-release/17.9-20261127074402

Conversation

@openprojectci

Copy link
Copy Markdown
Contributor

Created by GitHub action
Replaces #27360

oliverguenther and others added 2 commits November 26, 2026 15:01
Project attribute help texts were listed by attribute name only, so the help text API, its attachments and the help text dialog returned entries
for project custom fields the user would not be able to see: admin only fields, fields mapped to projects the user cannot see, and fields not added anywhere.

Help texts of project custom fields now follow ProjectCustomField.visible, like work package help texts follow WorkPackageCustomField.visible.

Attachments of help texts were visible to every logged in user. They are now visible only when the help text itself is visible.

https://community.openproject.org/work_packages/SC-358
* Ensure we always render mails in the context of the recipient

ApplicationMailer#mail now runs inside User.execute_as(recipient).
All fomatted texts and references will be resolved using the recipient user.

Previously, the mailers were not consistent in selecting a user to execute with.
Only MemberMailer, WorkPackageMailer and the meeting mailers already switched the user.

News, comments, forum messages, documents, announcements, project creation mails and the configurable mail
header/footer rendered as whoever was current, which is the anonymous user in background jobs and the author when delivered inline.

Some of these mailers still do their own switch in a block, as that code runs BEFORE the mail method is called.

https://community.openproject.org/work_packages/SC-355

* Remove per-mailer execute_as now covered by ApplicationMailer#mail

MemberMailer and WorkPackageMailer switched to the recipient only to render the mail body.
ApplicationMailer#mail now does this for every mail.

The meeting mailers need the wrapper because they build the ICS in the recipient's locale before mail gets called.

* Adapt mail reference spec to the release branch

Backporting the fix resulted in broken specs. The release branch has no UserMailer#message_mentioned and spells the
wizard mailer ProjectArtifactsMailer
…/17.9-20261127074402

1. Resolve conflict in custom_options_api.rb: keep the admin_only guard
from SC-358 on top of the on_visible_type_and_project scope from 18.0,
since that scope does not exclude admin only fields.

2. Adapt mail_reference_rendering_spec to 18.0: ProjectArtefactsMailer
spelling and the UserMailer#message_mentioned case.
@oliverguenther
oliverguenther merged commit 5242899 into release/18.0 Nov 27, 2026
18 checks passed
@oliverguenther
oliverguenther deleted the merge-release/17.9-20261127074402 branch November 27, 2026 08:07
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Development

Successfully merging this pull request may close these issues.

2 participants