Skip to content

[WIP] Validate id before adding link#22879

Draft
eduardomozart wants to merge 12 commits intoglpi-project:11.0/bugfixesfrom
eduardomozart:patch-34
Draft

[WIP] Validate id before adding link#22879
eduardomozart wants to merge 12 commits intoglpi-project:11.0/bugfixesfrom
eduardomozart:patch-34

Conversation

@eduardomozart
Copy link
Contributor

Add validation for suppliers_id field in contact supplier form

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

Screenshots (if appropriate):

Add validation for suppliers_id field in contact supplier form
@cedric-anne cedric-anne added this to the 10.0.24 milestone Jan 29, 2026
@cedric-anne cedric-anne modified the milestones: 10.0.24, 11.0.6 Jan 29, 2026
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.

See comments

@eduardomozart eduardomozart marked this pull request as draft January 29, 2026 12:22
@eduardomozart eduardomozart changed the title Validate suppliers_id before adding contact supplier [WIP] Validate id before adding link Jan 29, 2026
Refactor supplier contact validation to use exception handling.
cedric-anne
cedric-anne previously approved these changes Jan 29, 2026
Handle ItemLinkException when checking item project.
Handle ItemLinkException during cartridge item creation.
Added error handling for item line creation.
Add error handling for software license creation.
@trasher trasher dismissed stale reviews from cedric-anne, AdrienClairembault, and themself February 2, 2026 06:58

PR in draft

@cedric-anne cedric-anne modified the milestones: 11.0.6, 11.0.7 Mar 2, 2026
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.

Err 500 (Internal Server Error) when adding an empty Supplier to a Contact

4 participants