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

lunar_attributes.default_value is not respected #1958

Open
ken717w opened this issue Sep 18, 2024 · 0 comments
Open

lunar_attributes.default_value is not respected #1958

ken717w opened this issue Sep 18, 2024 · 0 comments
Labels
bug Something isn't working unconfirmed

Comments

@ken717w
Copy link

ken717w commented Sep 18, 2024

  • Lunar version: 1.0.0-beta.2
  • Laravel Version: 11.22.0
  • PHP Version: 8.3.11
  • Database Driver & Version: MySQL 8.0.32

Expected Behaviour:

In the lunar_attributes table there's a column default_value, which should be applied to new entities (e.g. products). This column should be included in the edit attribute modal as well.

Actual Behaviour:

Neither the default value is applied to new entities, nor it could be edited in the admin panel.

Steps To Reproduce:

  1. In database, manually edit the value of lunar_attributes.default_value of any existing row. In my case it's a number attribute which attribute_type = 'product' and type = 'Lunar\FieldTypes\Number'.
  2. Create a product in the admin panel
@ken717w ken717w added bug Something isn't working unconfirmed labels Sep 18, 2024
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