Fix dropdown fields label when name contains [] chars#17616
Merged
cedric-anne merged 1 commit intoglpi-project:mainfrom Aug 1, 2024
Merged
Fix dropdown fields label when name contains [] chars#17616cedric-anne merged 1 commit intoglpi-project:mainfrom
[] chars#17616cedric-anne merged 1 commit intoglpi-project:mainfrom
Conversation
AdrienClairembault
requested changes
Jul 31, 2024
04aa8c6 to
f910cf3
Compare
trasher
approved these changes
Jul 31, 2024
Member
Author
The main problem is that we cannot force the id in the |
cconard96
approved these changes
Jul 31, 2024
Contributor
|
How compatible is this change with the one I made in #17323 for "Automatically generated IDs from names may break labels because the name wasn't slugified"? |
Member
Author
I think there should not be compatibility issues with this change. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Found while testing #17462.
The
forattribute of the label was incorrect (e.g.dropdown_myprop[]1246579875) and different from the<select>id (e.g.dropdown_myprop__1246579875) that is generated by:glpi/src/Dropdown.php
Line 227 in 6edfb3d