You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When multiple ResourceAutocompleteChoiceType are used with the same choice_value (eg id), displayed values are overridden by the last saved one in session storage by semantic ui dropdown component.
Steps to reproduce
Create an entity Tag with a relation ManyToMany to Product
Create an entity Label with a relation ManyToMany to Product
Configure a ResourceAutocompleteChoiceType for Tag with choice_value=id
Configure a ResourceAutocompleteChoiceType for Label with choice_value=id
Create a new tag (with id 1)
Create a new label (with id 1)
Create a new product with the tag 1 and label 1
=> the displayed values for the tow autocomplete dropdown are the same
=> there is only 1 value saved in session storage with key 1
Possible Solution
Set the semantic UI dropdown option saveRemoteDatato false in sylius-auto-complete.js
The text was updated successfully, but these errors were encountered:
This PR was merged into the 1.11 branch.
Discussion
----------
| Q | A
| --------------- | -----
| Branch? | 1.10
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets | fixes#13571
| License | MIT
<!--
- Bug fixes must be submitted against the 1.10 or 1.11 branch(the lowest possible)
- Features and deprecations must be submitted against the master branch
- Make sure that the correct base branch is set
To be sure you are not breaking any Backward Compatibilities, check the documentation:
https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
Commits
-------
40c3620 [UI] Disable session storage for autocomplete dropdowns
Sylius version affected: 1.10.4
Description
When multiple
ResourceAutocompleteChoiceType
are used with the samechoice_value
(egid
), displayed values are overridden by the last saved one in session storage by semantic ui dropdown component.Steps to reproduce
Create an entity
Tag
with a relation ManyToMany toProduct
Create an entity
Label
with a relation ManyToMany toProduct
Configure a
ResourceAutocompleteChoiceType
forTag
withchoice_value=id
Configure a
ResourceAutocompleteChoiceType
forLabel
withchoice_value=id
Create a new tag (with id 1)
Create a new label (with id 1)
Create a new product with the tag 1 and label 1
=> the displayed values for the tow autocomplete dropdown are the same
=> there is only 1 value saved in session storage with key 1
Possible Solution
Set the semantic UI dropdown option
saveRemoteData
to false insylius-auto-complete.js
The text was updated successfully, but these errors were encountered: