From f33bc7b005602498f09031e1112cabeec6353806 Mon Sep 17 00:00:00 2001 From: Vimal Joseph Date: Sun, 16 Nov 2014 12:18:40 +0530 Subject: [PATCH] Fixed DB Error when saving widgets. Set 0 to the -select- option instead of empty string. --- CRM/Wci/Form/CreateWidget.php | 4 ++-- wci-helper-functions.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Wci/Form/CreateWidget.php b/CRM/Wci/Form/CreateWidget.php index 276d105..98759f9 100644 --- a/CRM/Wci/Form/CreateWidget.php +++ b/CRM/Wci/Form/CreateWidget.php @@ -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( diff --git a/wci-helper-functions.php b/wci-helper-functions.php index 5629066..c8a307c 100644 --- a/wci-helper-functions.php +++ b/wci-helper-functions.php @@ -2,7 +2,7 @@ function getContributionPageOptions() { $options = array( - '' => ts('- select -'), + 0 => ts('- select -'), ); $result = civicrm_api3('contribution_page', 'get'); -- 2.25.1