From 06bf134d1ad560c5eafc239179afeeec2a664207 Mon Sep 17 00:00:00 2001 From: Manoj K Date: Wed, 5 Nov 2014 18:45:42 +0530 Subject: [PATCH] #29801 - Changed Wci settings variable group name. --- extern/wciwidget.php | 5 ++++- settings/wci.setting.php | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/extern/wciwidget.php b/extern/wciwidget.php index 761a965..cd5d544 100644 --- a/extern/wciwidget.php +++ b/extern/wciwidget.php @@ -46,7 +46,10 @@ require_once 'CRM/Utils/Request.php'; $config = CRM_Core_Config::singleton(); $template = CRM_Core_Smarty::singleton(); -$widgetId = civicrm_api3('setting', 'getValue', array('group' => 'extensions', 'name' => 'default_wci_widget')); +$widgetId = CRM_Utils_Request::retrieve('widgetId', 'Positive', CRM_Core_DAO::$_nullObject); +if(empty($widgetId)) { + $widgetId = civicrm_api3('setting', 'getValue', array('group' => 'wci', 'name' => 'default_wci_widget')); +} $embed = CRM_Utils_Request::retrieve('embed', 'Positive', CRM_Core_DAO::$_nullObject); if (isset($format)) { diff --git a/settings/wci.setting.php b/settings/wci.setting.php index 15d7844..ebf2c0f 100644 --- a/settings/wci.setting.php +++ b/settings/wci.setting.php @@ -1,8 +1,8 @@ array( - 'group_name' => 'extensions', - 'group' => 'extensions', + 'group_name' => 'Wci Preference', + 'group' => 'wci', 'name' => 'default_wci_widget', 'type' => 'Integer', 'default' => 0, @@ -13,8 +13,8 @@ return array( 'help_text' => 'Sets default widget id', ), 'default_wci_profile' => array( - 'group_name' => 'extensions', - 'group' => 'extensions', + 'group_name' => 'Wci Preference', + 'group' => 'wci', 'name' => 'default_wci_profile', 'type' => 'Integer', 'default' => 0, -- 2.25.1