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

Throw error when Translate plugin enabled with 2 languages. #82

Closed bachvtuan closed 3 years ago

bachvtuan commented 3 years ago

Both plugins are up to date:

Screenshot from 2021-08-11 12-14-28

bachvtuan commented 3 years ago

I found out that plugin does not detect Translate Attribute class.

Current code

 if (class_exists(RainLab\Translate\Models\Attribute::class)) 

Fix code and that works.

 if (class_exists(\RainLab\Translate\Models\Attribute::class)) 
tobias-kuendig commented 3 years ago

Good catch! Thank you very much. Fixed in https://github.com/OFFLINE-GmbH/oc-gdpr-plugin/commit/33a44e4b7973c03b028353c44ee3cbf1bb096f38