Skip to content

Correcting insertion of GDPR menu into contacts

rajeshs requested to merge github/fork/AlphaDE/patch-1 into master

Created by: AlphaDE

The former solution $contactsMenuId = CRM_Core_DAO::getFieldValue('CRM_Core_BAO_Navigation', 'Contacts', 'id', 'name'); returned a wrong and unuseable value when looking for the right menu entry to insert the GDPR menu items. In consequence the menu entries were not added and the plugin was not useable. The proposed change replaces that line with a loop running through the CiviCRM menu structure to locate the menu entry and returns the correct index.

Merge request reports