Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 2.1.2
-
Fix Version/s: 2.1.2
-
Component/s: Drupal Integration Modules
-
Labels:None
Description
civicrm_href() is used by the Drupal Views2 code to present links to contact pages & email addresses, but it is not defined anywhere that I can find.
If you create a CiviCRM Contact view that makes use of 'Edit Link' or any other field that is presented as a link, PHP will encounter a fatal error:
"PHP Fatal error: Call to undefined function civicrm_href() in ..../sites/all/modules/civicrm/drupal/modules/views/civicrm/civicrm_handler_field_link_edit.inc on line 17"
It seems that it would have been a wrapper around CRM_Utils_System::href().
This patch defines a civicrm_href() that is such a direct wrapper and now views with links work.