synolia / SyliusGDPRPlugin

Make your Sylius project GDPR compliant.
European Union Public License 1.2
18 stars 8 forks source link

[Bug] Latest PR #52 introduced side effect Call to a member function getCallable() on bool #58

Closed Geolim4 closed 1 year ago

Geolim4 commented 1 year ago

Describe the bug When checking customer profil in admin area got the following error: Call to a member function getCallable() on bool. Faulty code: if ($function !== null && is_callable($function->getCallable())) { in GdprExtension.php

This extension is directly related to sylius_plus, but in vanilla sylius, this twig extension does not exists.

To Reproduce Go to /admin/customers/xxxxx

Expected behavior No error

Screenshots Error 500

Additional context Add any other context about the problem here.

oallain commented 1 year ago

Hello @Geolim4 ,

Fixed and tagged v1.5.1

Thanks for reported.

Geolim4 commented 1 year ago

Great, thank you !