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

Get error when trying to edit product option in 2nd language #1613

Open
cleargoal opened this issue Mar 6, 2024 · 0 comments
Open

Get error when trying to edit product option in 2nd language #1613

cleargoal opened this issue Mar 6, 2024 · 0 comments
Labels
1.x bug Something isn't working
Milestone

Comments

@cleargoal
Copy link

  • Lunar version: 0.8
  • Laravel Version: 9.52.16
  • PHP Version: 8.3.3-1
  • Database Driver & Version: pgsql, ver. 15

Expected Behaviour:

Edit the Ukrainian option's name (or any other) language, save it, and use it without errors.

Actual Behaviour:

When I started to write a value into the proper field - please see the screenshot
Screenshot from 2024-03-06 21-56-43
just after 2nd letter the form gets submitted and produces the error

Lunar\Models\ProductOption::Lunar\Models{closure}(): Argument #1 ($value) must be of type string, null given

Steps To Reproduce:

All steps are made in the admin 'Settings' area.

  1. add new language, don't set it as default. In my case, it's Ukranian' with the original name "Українська" and with the code 'uk'.
  2. click Options under the topic 'Product' and then for the 'Size' option choose the right context menu, where choose 'Edit Option'.
  3. For the field 'Name' click the button 'Locales' then you'll see all locales you created with the field, as you see on my screenshot.
  4. print localized option name. In my case, it's 'розмір' but I can't add more than 2 letters.
@cleargoal cleargoal added bug Something isn't working unconfirmed labels Mar 6, 2024
@alecritson alecritson added this to the v0.8 milestone Mar 28, 2024
@glennjacobs glennjacobs added the 1.x label May 20, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.x bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants