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

Editing Customer Group availability on a Product #2087

Open
PharaohAsh opened this issue Jan 31, 2025 · 0 comments
Open

Editing Customer Group availability on a Product #2087

PharaohAsh opened this issue Jan 31, 2025 · 0 comments
Labels
bug Something isn't working unconfirmed

Comments

@PharaohAsh
Copy link

PharaohAsh commented Jan 31, 2025

  • Lunar version: 1.0.0-beta6
  • Laravel Version: 11.39.0
  • PHP Version: 8.3
  • Database Driver & Version: PostgreSQL 16.2

Expected Behaviour:

I should not encounter an error by toggling any of the options for Customer Group in a product.

Actual Behaviour:

Toggling off any of the Customer Group's options:

  • Purchasable
  • Visible
  • Enabled

causes the page to crash with the following error:

[previous exception] [object] (UnhandledMatchError(code: 0): Unhandled match case '' at /vendor/lunarphp/lunar/src/Filament/Resources/ProductResource/RelationManagers/CustomerGroupRelationManager.php:81)

Steps To Reproduce:

  1. Go in to edit a product.
  2. Click on Availability
  3. Edit the attached Customer Groups (only one here)
  4. Toggle Purchasable OR Visible OR Enabled off
  5. Save
@PharaohAsh PharaohAsh added bug Something isn't working unconfirmed labels Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed
Projects
None yet
Development

No branches or pull requests

1 participant