From: Manoj K Date: Fri, 17 Oct 2014 06:05:03 +0000 (+0530) Subject: #29801 - Fix for donate button link issue. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d12b4a2ce80f936e92d4a16d0a79639330393664;p=com.zyxware.civiwci.git #29801 - Fix for donate button link issue. --- diff --git a/CRM/Wci/BAO/Widget.php b/CRM/Wci/BAO/Widget.php index bc84161..ea9559c 100644 --- a/CRM/Wci/BAO/Widget.php +++ b/CRM/Wci/BAO/Widget.php @@ -139,7 +139,8 @@ class CRM_Wci_BAO_Widget extends CRM_Wci_DAO_Widget { $data["logo_image"] = $dao->logo_image; $data["image"] = $dao->image; $data["button_title"] = $dao->button_title; - $data["progress_bar_id"] = $dao->button_link_to; + $data["button_link_to"] = $dao->button_link_to; + $data["progress_bar_id"] = $dao->progress_bar_id; $data["description"] = strip_tags(base64_decode($dao->description)); $data["size_variant"] = $dao->size_variant; $data["color_title"] = $dao->color_title; diff --git a/extern/wciwidget.php b/extern/wciwidget.php index 50b820d..a44ea71 100644 --- a/extern/wciwidget.php +++ b/extern/wciwidget.php @@ -59,6 +59,7 @@ if (isset($embed) && (true == $embed)) { } else { $data = CRM_Wci_BAO_Widget::getWidgetData($widgetId); $template->assign('wciform', $data); + $template->assign('cpageId', $data['button_link_to']); $template->template_dir[] = getWciWidgetTemplatePath(); $wcidata = $template->fetch('wciwidget.tpl'); diff --git a/templates/CRM/Wci/Page/wciwidget.tpl b/templates/CRM/Wci/Page/wciwidget.tpl index 9bae716..84e63c6 100644 --- a/templates/CRM/Wci/Page/wciwidget.tpl +++ b/templates/CRM/Wci/Page/wciwidget.tpl @@ -183,6 +183,6 @@
- {$wciform.button_title} + {$wciform.button_title}