Skip to content

N°10196 - Fix TriggerOnAttachmentDownload - #1078

Merged
accognet merged 2 commits into
support/3.3.0from
issue/10196-TriggerOnAttachmentDownload
Oct 14, 2026
Merged

accognet merged 2 commits into
support/3.3.0from
issue/10196-TriggerOnAttachmentDownload

Conversation

@accognet

Copy link
Copy Markdown
Contributor

internal

Copilot AI balanced review requested due to automatic review settings October 13, 2026 09:05
@CombodoApplicationsAccount CombodoApplicationsAccount added the internal Work made by Combodo label Oct 13, 2026

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.

🟢 Approval recommended

The guard correctly prevents invalid attribute access without changing supported trigger behavior.

0 open findings

What changed in this PR

Fixes attachment-download triggers by avoiding access to the unsupported file_in_email attribute.

Changes:

  • Checks attribute validity before reading file_in_email.
  • Preserves email attachment behavior for create/delete triggers.
File Description
datamodels/​2.x/​itop-attachments/​src/​Hook/​EventListener.php Guards trigger attribute access.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Fixes attachment download triggers by checking whether file_in_email exists before reading it.

  • Attachment triggers check for the email setting before using it.

Reviews (1) · Last reviewed commit: "N°10196 - Fix TriggerOnAttachmentDownloa..." · Reviewed by Greptile

@Molkobain
Molkobain changed the base branch from support/3.3 to support/3.3.0 October 14, 2026 07:49
@Molkobain Molkobain added this to the 3.3.0-1 milestone Oct 14, 2026
@Molkobain

Copy link
Copy Markdown
Member

Just need to rebase onto the support/3.3.0 branch then good to go for me 🙌

@accognet
accognet force-pushed the issue/10196-TriggerOnAttachmentDownload branch from 03eef0b to b49b9e3 Compare October 14, 2026 08:59
@accognet
accognet merged commit 7e671ec into support/3.3.0 Oct 14, 2026
@accognet
accognet deleted the issue/10196-TriggerOnAttachmentDownload branch October 14, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Work made by Combodo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants