Skip to content

fix: use @record.title for attachment search result title#194

Merged
kou merged 1 commit into
clear-code:masterfrom
abetomo:fix-FtsAttachmentMapper-title
Jun 12, 2026
Merged

fix: use @record.title for attachment search result title#194
kou merged 1 commit into
clear-code:masterfrom
abetomo:fix-FtsAttachmentMapper-title

Conversation

@abetomo

@abetomo abetomo commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

@record is an FtsTarget (not an Attachment), so use FtsTarget#title.

`@record` is an FtsTarget (not an Attachment), so use FtsTarget#title.
Copilot AI review requested due to automatic review settings June 12, 2026 01:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes attachment search result titles by using the FtsTarget’s stored title field (since @record in FtsAttachmentMapper is an FtsTarget, not a Redmine Attachment).

Changes:

  • Update FtsAttachmentMapper#title to return @record.title instead of @record.filename.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kou kou merged commit 0aad14b into clear-code:master Jun 12, 2026
15 checks passed
@abetomo abetomo deleted the fix-FtsAttachmentMapper-title branch June 13, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants