Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-3836

Drupal Views2 missing civicrm_href()

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.1.2
    • 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.

        Attachments

          Activity

            People

            • Assignee:
              mover Michał Mach
              Reporter:
              nottwo Trannie Carter
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: