From d12b4a2ce80f936e92d4a16d0a79639330393664 Mon Sep 17 00:00:00 2001 From: Manoj K Date: Fri, 17 Oct 2014 11:35:03 +0530 Subject: [PATCH] #29801 - Fix for donate button link issue. --- CRM/Wci/BAO/Widget.php | 3 ++- extern/wciwidget.php | 1 + templates/CRM/Wci/Page/wciwidget.tpl | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) 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}
-- 2.25.1