Skip to content

Fix option ingredients being overwriten#2341

Open
C85297 wants to merge 1 commit intogchq:masterfrom
C85297:646-fix-populateoptions-overriding
Open

Fix option ingredients being overwriten#2341
C85297 wants to merge 1 commit intogchq:masterfrom
C85297:646-fix-populateoptions-overriding

Conversation

@C85297
Copy link
Copy Markdown
Member

@C85297 C85297 commented Apr 27, 2026

Description
Fix option ingredients value being overwriten, discarding a loaded recipe.
Currently, when a recipe is loaded, the saved arguments are loaded, and then a change event is triggered for each argument. For populateOption ingredients, that change event reapplied the selected populate value to the target argument, replacing the saved custom value.

Added data-target metadata to rendered populateOption / populateMultiOption select elements so recipe-loading event logic can identify their target argument.
When the target already has a value, the change event is skipped.

Existing Issue
Closes #646

AI disclosure
GPT 5.5

Test Coverage
👍 UI test added based on behaviour in #646

@C85297 C85297 force-pushed the 646-fix-populateoptions-overriding branch from ca4baff to 9a83e43 Compare April 27, 2026 15:33
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.

Bug report: Translate_DateTime_Format doesn't use included parameters when loading from a saved recipe

1 participant