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

Fix empty sliderId returned in the SliderDataProvider #15

Open
programgames opened this issue Jul 17, 2020 · 0 comments
Open

Fix empty sliderId returned in the SliderDataProvider #15

programgames opened this issue Jul 17, 2020 · 0 comments

Comments

@programgames
Copy link
Collaborator

Since the function getSliderCodeUsedConfig is called from layout ( oro ).
In class SliderDataProvider in function public function getSliderCodeUsedConfig()
the line
$slider = $this->sliderRepository->find($sliderId); should be called only if sliderId is not empty and , if not should do something else to prevent error 500.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant