Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add before action to handle option type params #5816

Merged

Conversation

nvandoorn
Copy link
Contributor

@nvandoorn nvandoorn commented Aug 8, 2024

Summary

As reported in #5751, the new admin UI has a bug with the option type selectors: only one option type can be added.

We narrowed this down to an issue handling option type params in the new admin products controller. We noticed legacy controller contains a before action to handle the incoming option type params, but the new one did not. Re-adding the before action solves the bug. This is required because the form input for option types contains comma separated values within a string:

<input value="1,2" type="hidden">

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

As reported in solidusio#5751, the new admin UI has a bug with the option type
selectors: only one option type can be added.

We narrowed this down to an issue handling option type params in the new
admin products controller. We noticed legacy controller contains a
before action to handle the incoming option type params, but the new one
did not. Re-adding the before action solves the bug. This is required
because the form input for option types contains comma separated values
within a string:

`<input value="1,2" type="hidden">`

Co-authored-by: An Stewart <[email protected]>
Co-authored-by: Kendra Chateau <[email protected]>
@nvandoorn nvandoorn force-pushed the fix-product-option-types-selector branch from 8002ab4 to 4f9903b Compare August 8, 2024 16:36
@kennyadsl kennyadsl merged commit 0b0513c into solidusio:main Aug 9, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants