Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[AttributeBundle] custom locale_code fixed#12407

Merged
pamil merged 7 commits into
Sylius:1.8from
Mateuszry:select-attribute-type-locale-code
Mar 16, 2021
Merged

[AttributeBundle] custom locale_code fixed#12407
pamil merged 7 commits into
Sylius:1.8from
Mateuszry:select-attribute-type-locale-code

Conversation

@Mateuszry
Copy link
Copy Markdown
Contributor

Q A
Branch? 1.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

When we pass custom locale_code in SelectAttributeType configuration defaultLocaleCode has always been used, because there was an error in the condition ( options instead of choice).

@Mateuszry Mateuszry requested a review from a team as a code owner March 3, 2021 07:49
pamil and others added 4 commits March 16, 2021 12:29
…roen, pamil)

This PR was merged into the 1.8 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | 1.8
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets |
| License         | MIT

This fixes a bug where this following taxon tree:

* A
    * B
        * C

would lead to a full name of `A  / B > C` instead of `A > B > C` if the call was `$taxonC->getFullname('>');`

Commits
-------

7d72050 Pass path delimiter up to parent
f141354 Fix test case for default and custom taxon path delimiter
3bde33a Add tests for path delimiter while getting taxon's fullname
…lues (christopherhero)

This PR was merged into the 1.8 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | 1.8
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | 
| License         | MIT

In the js file, `src/Sylius/Bundle/UiBundle/Resources/private/js/sylius-auto-complete.js` is set timeout = 5 sec to wait for an async response from ajax autocomplete action.

possibly this was added because someone calculated that this time would be enough to load mutation observers. However, when we add more than one field of type `ResourceAutocompleteChoiceType` it loads with a long delay.
In this PR I removed timeout and add the `refresh` action on the dropdown with 'set selected' action after the response receiving.


Commits
-------

2a4cc02 Removing hard timeout on edit while load selected values
@pamil
Copy link
Copy Markdown
Contributor

pamil commented Mar 16, 2021

The base of this pull-request was changed, you need fetch and reset your local branch
if you want to add new commits to this pull request. Reset before you pull, else commits
may become messed-up.

Unless you added new commits (to this branch) locally that you did not push yet,
execute git fetch origin && git reset "select-attribute-type-locale-code" to update your local branch.

Feel free to ask for assistance when you get stuck 👍

@pamil pamil changed the base branch from master to 1.8 March 16, 2021 13:05
@pamil pamil force-pushed the select-attribute-type-locale-code branch from 3b1b3be to 515df38 Compare March 16, 2021 13:05
@pamil pamil merged commit 3766c28 into Sylius:1.8 Mar 16, 2021
@pamil
Copy link
Copy Markdown
Contributor

pamil commented Mar 16, 2021

Thanks, @Mateuszry! 🎉

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