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.