From: Jagadedes Date: Mon, 20 Oct 2014 09:25:34 +0000 (+0530) Subject: #29750 on save redirect to lising page X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9c5af9efafa47ace39ad894b605287aebba35b82;p=com.zyxware.civiwci.git #29750 on save redirect to lising page --- 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}