flurrybox / enhanced-privacy

Magento 2 Enhanced Privacy extension for easier compliance with GDPR. Allows customers to delete, anonymize, or export their personal data.
https://flurrybox.com
GNU General Public License v3.0
43 stars 11 forks source link

Error on deleting reasons from admin #10

Open manasaveerabomma opened 4 years ago

manasaveerabomma commented 4 years ago

Error while deleting reasons from admin SQLSTATE[42S22]: Column not found: 1054 Unknown column 'reason_id' in 'where clause', query was: SELECT main_table.* FROM flurrybox_enhancedprivacy_delete_reasons AS main_table WHERE (reason_id IN('7'))

manasaveerabomma commented 4 years ago

Hi, I found the ans

In Flurrybox\EnhancedPrivacy\Model\ResourceModel\Reason\Collection.php file change protected $_idFieldName = 'resource_id'; to protected $_idFieldName = 'id';