Skip to content

Parse Vue expressions for select field to ensure static options with expression values or labels and convert them to option expressions#548

Merged
Soner (shyim) merged 2 commits intoshopware:mainfrom
JoshuaBehrens:bugfix/support-expressions-in-select-field
Dec 15, 2025
Merged

Parse Vue expressions for select field to ensure static options with expression values or labels and convert them to option expressions#548
Soner (shyim) merged 2 commits intoshopware:mainfrom
JoshuaBehrens:bugfix/support-expressions-in-select-field

Conversation

@JoshuaBehrens
Copy link
Copy Markdown
Contributor

I added a reallife test I stumbled upon. As soon as options have expressions either as value or label the fixers generate weird code. This way we can make sure, that even the JSON encoding can support expressions. The uuid approach was just used to reduce conflicts with real code, that has to be converted.

This expects the attribute escaping pull request to be merged.

@JoshuaBehrens Joshua Behrens (JoshuaBehrens) force-pushed the bugfix/support-expressions-in-select-field branch 2 times, most recently from 39228fd to 1f638fb Compare May 22, 2025 16:26
@shyim Soner (shyim) force-pushed the bugfix/support-expressions-in-select-field branch from f77df6b to f6ef4ca Compare December 15, 2025 01:52
@shyim Soner (shyim) merged commit eff33a8 into shopware:main Dec 15, 2025
3 checks passed
@shyim
Copy link
Copy Markdown
Member

Thanks!

@JoshuaBehrens Joshua Behrens (JoshuaBehrens) deleted the bugfix/support-expressions-in-select-field branch December 15, 2025 10:40
@JoshuaBehrens
Copy link
Copy Markdown
Contributor Author

Thank you for merging :)

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.

2 participants