Skip to content

Conversation

@MyvTsv
Copy link

@MyvTsv MyvTsv commented Jan 29, 2025

Changes description

the mandatory dropdown created with the plugin fields was not checked if the value was empty or not. In the database, the value could be a null value, an empty string or 0 and only the case where the value is equal to 0 is checked which validates the other two cases.

Checklist

Please check if your PR fulfills the following specifications:

  • Tests for the changes have been added
  • Docs have been added/updated

References

#36030

@stonebuzz
Copy link
Contributor

@MyvTsv

Can you adapt it and send it to the customer for validation?

@MyvTsv MyvTsv self-assigned this Feb 10, 2025
@MyvTsv MyvTsv marked this pull request as ready for review February 11, 2025 15:24
@MyvTsv
Copy link
Author

MyvTsv commented Feb 14, 2025

The customer claims that the patch works

@stonebuzz stonebuzz self-requested a review February 14, 2025 10:27
@Rom1-B Rom1-B merged commit f336e1b into pluginsGLPI:support/2.13.0 Feb 18, 2025
4 checks passed
btry pushed a commit that referenced this pull request Feb 27, 2025
* fix: set the default value of the dropdown as empty string

* refactor
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.

4 participants