From: Manoj K Date: Wed, 5 Nov 2014 13:15:42 +0000 (+0530) Subject: #29801 - Changed Wci settings variable group name. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=06bf134d1ad560c5eafc239179afeeec2a664207;p=com.zyxware.civiwci.git #29801 - Changed Wci settings variable group name. --- 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,