From 3a99ddd141ee686152bcbb5eb4bedca04917e5d6 Mon Sep 17 00:00:00 2001 From: Tim Mallezie Date: Tue, 10 Mar 2015 20:38:19 +0100 Subject: [PATCH] CRM-16088 Allow subclassing of 'CRM_Event_Form_ManageEvent_Location' and 'CRM_Contact_Form_Domain' --- CRM/Contact/Form/Location.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/Form/Location.php b/CRM/Contact/Form/Location.php index 35a9baa235..2c539a21eb 100644 --- a/CRM/Contact/Form/Location.php +++ b/CRM/Contact/Form/Location.php @@ -57,7 +57,9 @@ class CRM_Contact_Form_Location { if (in_array($className, array( 'CRM_Event_Form_ManageEvent_Location', 'CRM_Contact_Form_Domain', - ))) { + )) + || is_subclass_of($className, 'CRM_Event_Form_ManageEvent_Location') + || is_subclass_of($className, 'CRM_Contact_Form_Domain')) { $form->_blocks = array( 'Address' => ts('Address'), 'Email' => ts('Email'), -- 2.25.1