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

Using pluck() on null on discount creation page #830

Closed
skyrowl opened this issue Jan 28, 2023 · 1 comment · Fixed by #834
Closed

Using pluck() on null on discount creation page #830

skyrowl opened this issue Jan 28, 2023 · 1 comment · Fixed by #834
Labels
bug Something isn't working

Comments

@skyrowl
Copy link
Contributor

skyrowl commented Jan 28, 2023

  • Lunar version: 0.2.0-rc1
  • Laravel Version: 9.48.0
  • PHP Version: 8.1.3

Expected Behaviour:

Show the create form of discounts

Actual Behaviour:

Throws error

Call to a member function pluck() on null

pointing to "packages/admin/resources/views/partials/forms/discount/limitations.blade.php"

@livewire('hub.components.product-search', [
'existing' => $selectedProducts->pluck('id'),
'ref' => 'discount-limitations',
])

Steps To Reproduce:

Open discounts tab then click on "Create"
The install was upgraded from a previous version of lunar (upgrade guide has been followed) and is seeded with the demo store datas (not using demo store only its seeder)

@skyrowl skyrowl added the bug Something isn't working label Jan 28, 2023
@alecritson
Copy link
Collaborator

Resolved in #834

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants