#29801 - Changed Wci settings variable group name.
authorManoj K <manoj.k@zyxware.com>
Wed, 5 Nov 2014 13:15:42 +0000 (18:45 +0530)
committerManoj K <manoj.k@zyxware.com>
Wed, 5 Nov 2014 13:15:42 +0000 (18:45 +0530)
extern/wciwidget.php
settings/wci.setting.php

index 761a9656610be70240aa018da61c5551ff44210d..cd5d544a5a6404a792515eb75c9b78179d8fc505 100644 (file)
@@ -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)) {
index 15d78442b8bf493f8a10f3521988694044891909..ebf2c0f3af94af5ab6f51db4788db90ae1a95e7f 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 return array(
   'default_wci_widget' => 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,