From cd84a2fade1b513c0fa7ff1d24a0d3a9fa284d21 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 3 Nov 2014 20:19:30 -0500 Subject: [PATCH] CRM-15524 - Avoid loading profileSelector scripts in ajax mode --- CRM/UF/Page/ProfileEditor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/UF/Page/ProfileEditor.php b/CRM/UF/Page/ProfileEditor.php index 6c16846939..3ee072bd29 100644 --- a/CRM/UF/Page/ProfileEditor.php +++ b/CRM/UF/Page/ProfileEditor.php @@ -13,7 +13,7 @@ class CRM_UF_Page_ProfileEditor extends CRM_Core_Page { static function registerProfileScripts() { static $loaded = FALSE; - if ($loaded) { + if ($loaded || CRM_Core_Resources::singleton()->isAjaxMode()) { return; } $loaded = TRUE; -- 2.25.1