OFFLINE-GmbH / oc-gdpr-plugin

October CMS plugin to make websites GDPR and ePrivacy compliant
https://octobercms.com/plugin/offline-gdpr
MIT License
36 stars 20 forks source link

Undefined index message #52

Closed codebugs closed 5 years ago

codebugs commented 5 years ago

Thank you for the plugin. It really saved me a lot of time.
However I find a bug...or possibly I just missed something in documentation.

When I do not enable a cookie with cookie manager than I receive an error:

An exception has been thrown during the rendering of a template ("Undefined index: oracles-addthis").

This is in my gdpr partial:

{% if gdprCookieAllowed('oracles-addthis') %}
    ...my content...
{% endif %}

Of course I've created cookie called oracles-addthis.
Is it a bug or am I doing something wrong?

Thank you!
CB

codebugs commented 5 years ago

I'm sorry. It was my fault. I forgot about partial reload...

Kids, never forget to define "partial for soft reload" property in cookie banner component settings or you will also have this error message... 😃

Plugin is still awesome! Thanks, CB