Repository navigation
Merge release/17.9 into release/18.0 - #27398
Merged
Merged
Conversation
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
approved these changes
Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Created by GitHub action
Replaces #27360