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

using an extension with custom templates generates undefined key error

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.0
    • Fix Version/s: 4.1.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      I click on Reports -> Create Report From Template, and then select a report that was installed as an extension that uses a custom template.

      I get:

      Notice: Undefined variable: key in CRM_Core_Extensions->getTemplateName() (line 483 of /var/aegir/platforms/marquez-ourpowerbase-7.10-4.1/sites/all/modules/civicrm/CRM/Core/Extensions.php).
      Notice: Undefined index: in CRM_Core_Extensions->getTemplateName() (line 483 of /var/aegir/platforms/marquez-ourpowerbase-7.10-4.1/sites/all/modules/civicrm/CRM/Core/Extensions.php).
      Notice: Trying to get property of non-object in CRM_Core_Extensions->getTemplateName() (line 483 of /var/aegir/platforms/marquez-ourpowerbase-7.10-4.1/sites/all/modules/civicrm/CRM/Core/Extensions.php).

      It seems to be a simple coding error. The key variable is defined after it is used, not before.

        Attachments

          Activity

            People

            • Assignee:
              jamie Jamie McClelland
              Reporter:
              jamie Jamie McClelland
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: