From a37f3caa8618d2c066ea3b552885f0cca1e4daf7 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 5 Nov 2014 18:06:22 -0500 Subject: [PATCH] info: Fix the profile link displayed in noscript tag. * CRM/Memberdashboard/Page/Info.php (CRM_Memberdashboard_Page_Info) [run]: Assign 'profileId' for smarty template. * templates/CRM/Memberdashboard/Page/Info.tpl: Fix profile URL. --- CRM/Memberdashboard/Page/Info.php | 6 ++++-- templates/CRM/Memberdashboard/Page/Info.tpl | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CRM/Memberdashboard/Page/Info.php b/CRM/Memberdashboard/Page/Info.php index 9febdb8..8468e63 100644 --- a/CRM/Memberdashboard/Page/Info.php +++ b/CRM/Memberdashboard/Page/Info.php @@ -26,7 +26,7 @@ class CRM_Memberdashboard_Page_Info extends CRM_Core_Page { function run() { CRM_Utils_System::setTitle('My Info'); - $profile_id = civicrm_api3('setting', 'getvalue', array( + $profileId = civicrm_api3('setting', 'getvalue', array( 'name' => 'memberdashboard_info_profile_id', 'group' => MEMBERDASHBOARD_SETTINGS_GROUP )); @@ -41,7 +41,9 @@ class CRM_Memberdashboard_Page_Info extends CRM_Core_Page { 'assets/js/underscore.js'); $resources->addScriptFile('org.fsf.memberdashboard', 'assets/js/member-info.js'); - $resources->addScript("var memberDashboard = { profileId: $profile_id };"); + $resources->addScript("var memberDashboard = { profileId: $profileId };"); + + $this->assign('profileId', $profileId); parent::run(); } diff --git a/templates/CRM/Memberdashboard/Page/Info.tpl b/templates/CRM/Memberdashboard/Page/Info.tpl index 2ef3a3f..cacca26 100644 --- a/templates/CRM/Memberdashboard/Page/Info.tpl +++ b/templates/CRM/Memberdashboard/Page/Info.tpl @@ -23,7 +23,7 @@

You seem to have JavaScript disabled. To edit your contact information, please - follow this link. + follow this link.

-- 2.25.1