From 799ffc5a59b8748d9f86fa4273b5b0510d596102 Mon Sep 17 00:00:00 2001 From: Manoj K Date: Wed, 29 Oct 2014 17:40:30 +0530 Subject: [PATCH 1/1] #29801 - Fix for broken Newsletter signup form action url. --- extern/wciwidget.php | 3 ++ templates/CRM/Wci/Form/CreateWidget.tpl | 4 +- templates/CRM/Wci/Page/wciwidget.tpl | 55 ++++++++++++++----------- wci-helper-functions.php | 4 ++ 4 files changed, 41 insertions(+), 25 deletions(-) diff --git a/extern/wciwidget.php b/extern/wciwidget.php index d868228..8516126 100644 --- a/extern/wciwidget.php +++ b/extern/wciwidget.php @@ -56,6 +56,9 @@ if (isset($format)) { $template->assign('wciform', $data); $template->assign('cpageId', $data['button_link_to']); + if(!empty($data['email_signup_group_id'])) { + $template->assign('emailSignupGroupFormURL', getEmailSignupFormUrl()); + } if ($data["override"] == '0') { $template->template_dir[] = getWciWidgetTemplatePath(); diff --git a/templates/CRM/Wci/Form/CreateWidget.tpl b/templates/CRM/Wci/Form/CreateWidget.tpl index d43f6de..c91646c 100644 --- a/templates/CRM/Wci/Form/CreateWidget.tpl +++ b/templates/CRM/Wci/Form/CreateWidget.tpl @@ -38,7 +38,9 @@
{literal} -