Fixed DB Error when saving widgets.
authorVimal Joseph <vimal.joseph@zyxware.com>
Sun, 16 Nov 2014 06:48:40 +0000 (12:18 +0530)
committerVimal Joseph <vimal.joseph@zyxware.com>
Sun, 16 Nov 2014 06:48:40 +0000 (12:18 +0530)
Set 0 to the -select- option instead of empty string.

CRM/Wci/Form/CreateWidget.php
wci-helper-functions.php

index 276d1054f006c4d342b6a163fa39008a62869d5f..98759f9de3198ed96ebe87781b2069684a6b9f46 100644 (file)
@@ -344,7 +344,7 @@ where w.id=" . $this->_id;*/
   
   function getProgressBars() {
     $options = array(
-      '' => ts('- select -'),
+      0 => ts('- select -'),
     );
     $pbList = CRM_Wci_BAO_ProgressBar::getProgressbarList();
     foreach ($pbList as $pb) {
@@ -369,7 +369,7 @@ where w.id=" . $this->_id;*/
 */
   function getGroupOptions() {
     $options = array(
-      '' => ts('- select -'),
+      0 => ts('- select -'),
     );
     
     $result = civicrm_api3('group', 'get', array(
index 5629066c85d1e5b6aa8ce40ad96315585806090d..c8a307c11322ebe77f05cd7361a7dead4bd293c2 100644 (file)
@@ -2,7 +2,7 @@
 
   function getContributionPageOptions() {
     $options = array(
-      '' => ts('- select -'),
+      0 => ts('- select -'),
     );
     
     $result = civicrm_api3('contribution_page', 'get');