Skip to content

Conversation

@Herafia
Copy link
Contributor

@Herafia Herafia commented Dec 1, 2025

Checklist before requesting a review

Please delete options that are not relevant.

  • I have read the CONTRIBUTING document.
  • I have performed a self-review of my code.
  • I have added tests that prove my fix is effective or that my feature works.
  • This change requires a documentation update.

Description

  • It fixes !40246
  • When a document is added in a Ticket context, the default category must be applied if no other category is selected
  • Add tests for Ticket and Change, including the following contexts: ITILFollowup, TicketTask, and ITILSolution

Copy link
Member

@cedric-anne cedric-anne left a comment

Choose a reason for hiding this comment

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

Please rebase to solve conflicts.

@Herafia Herafia changed the base branch from 11.0/bugfixes to 10.0/bugfixes December 2, 2025 09:09
@Herafia Herafia requested a review from cedric-anne December 2, 2025 14:50
@Herafia Herafia self-assigned this Dec 2, 2025
@Herafia Herafia added the bug label Dec 2, 2025
@Herafia Herafia requested review from Rom1-B and stonebuzz December 2, 2025 14:50
@cedric-anne cedric-anne added this to the 10.0.22 milestone Dec 2, 2025
@trasher trasher modified the milestones: 10.0.22, 10.0.23 Dec 4, 2025
@Herafia Herafia force-pushed the fix/missing-categorie-document-ticket branch from d032fb8 to b25896a Compare December 4, 2025 08:35
Copy link
Contributor

@trasher trasher left a comment

Choose a reason for hiding this comment

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

Tests are failing

@Herafia Herafia force-pushed the fix/missing-categorie-document-ticket branch from dc51a92 to 859b380 Compare December 4, 2025 15:50
Co-authored-by: Johan Cwiklinski <trasher@x-tnd.be>
@trasher
Copy link
Contributor

trasher commented Dec 5, 2025

Finally, seems like there is nothing in this PR about the category - or did I miss something?

Please adapt PR title (that will be used as commit message on merge).

@stonebuzz
Copy link
Contributor

The fix for the missing category was added in this pull request:

#21924

However, when a follow-up, task, or solution attaches a document, the default category is not applied, because this case is not handled by the if condition that was corrected in that PR.

@trasher
Copy link
Contributor

trasher commented Dec 8, 2025

OK; I still think the PR title should be enhanced ^^

@stonebuzz
Copy link
Contributor

Ah yes, indeed — he doesn’t mention the document category. I read it too quickly. ^^ @Herafia Can you adapt PR title?

@Herafia Herafia changed the title categorie ticket in follow, task and solution + tests Default document to files attached to tickets Dec 9, 2025
@Herafia
Copy link
Contributor Author

Herafia commented Dec 9, 2025

@stonebuzz, is ok ?!

@stonebuzz
Copy link
Contributor

  • When a document is added in a Ticket context, the default category must be applied if no other category is selected
  • Add tests for Ticket and Change, including the following contexts: ITILFollowup, TicketTask, and ITILSolution

Maybe

Fix missing default category for documents added to Tickets via follow-up, task, or solution

@Herafia Herafia changed the title Default document to files attached to tickets Fix missing default category for documents added to Tickets via follow-up, task, or solution Dec 9, 2025
@trasher trasher merged commit 831cfa9 into glpi-project:10.0/bugfixes Dec 9, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants