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

recalculate prices does not work if package price changes #819

Open
PiQuer opened this issue Jun 6, 2016 · 1 comment
Open

recalculate prices does not work if package price changes #819

PiQuer opened this issue Jun 6, 2016 · 1 comment

Comments

@PiQuer
Copy link
Collaborator

PiQuer commented Jun 6, 2016

To reproduce, create an order, then change the agegroup so that the prices changes, try to recalculate the package price in the Admin panel.

Fatal error: Call to a member function getValue() on null in /var/www/ers/module/Admin/src/Admin/Controller/PackageController.php on line 361

As a workaround for my particular case where I needed to recalculate the price, I commented out these lines, because I know that the order is not paid.

#if($newItem->getStatus()->getValue() == 'paid') {
#     $newItem->setStatus($statusOrdered);
#}
@BigAndini
Copy link
Owner

I think I fixed this bug in the new master branch. Can you please have a look if the code of the master branch works for you?

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

No branches or pull requests

2 participants