From 9c5af9efafa47ace39ad894b605287aebba35b82 Mon Sep 17 00:00:00 2001 From: Jagadedes Date: Mon, 20 Oct 2014 14:55:34 +0530 Subject: [PATCH] #29750 on save redirect to lising page --- CRM/Wci/Form/ProgressBar.php | 2 ++ templates/CRM/Wci/Page/ProgressBarList.tpl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Wci/Form/ProgressBar.php b/CRM/Wci/Form/ProgressBar.php index 012d6f5..29501d3 100644 --- a/CRM/Wci/Form/ProgressBar.php +++ b/CRM/Wci/Form/ProgressBar.php @@ -171,6 +171,7 @@ class CRM_Wci_Form_ProgressBar extends CRM_Core_Form { CRM_Core_DAO::executeQuery($sql); endfor; $transaction->commit(); + CRM_Utils_System::redirect('civicrm/wci/progress-bar?reset=1'); } catch (Exception $e) { //TODO @@ -196,6 +197,7 @@ class CRM_Wci_Form_ProgressBar extends CRM_Core_Form { CRM_Core_DAO::executeQuery($sql); endfor; $transaction->commit(); + CRM_Utils_System::redirect('civicrm/wci/progress-bar?reset=1'); } catch (Exception $e) { //TODO diff --git a/templates/CRM/Wci/Page/ProgressBarList.tpl b/templates/CRM/Wci/Page/ProgressBarList.tpl index 96b1918..97d869c 100644 --- a/templates/CRM/Wci/Page/ProgressBarList.tpl +++ b/templates/CRM/Wci/Page/ProgressBarList.tpl @@ -102,7 +102,7 @@ {else}
  - {ts 1=$newPageURL}No contribution pages have been created yet. Click here to create a new contribution page.{/ts} + {ts 1=$newPageURL}No Progressbars have been created yet. Click here to create a new Progressbar.{/ts}
{/if} {/if} -- 2.25.1