#29750 on save redirect to lising page
authorJagadedes <jagadees.pillai@zyxware.com>
Mon, 20 Oct 2014 09:25:34 +0000 (14:55 +0530)
committerJagadedes <jagadees.pillai@zyxware.com>
Mon, 20 Oct 2014 09:25:34 +0000 (14:55 +0530)
CRM/Wci/Form/ProgressBar.php
templates/CRM/Wci/Page/ProgressBarList.tpl

index 012d6f5183552154a78ccca1d8fc1fe2f890e2f8..29501d33dd8453805eb62eff068c0ccd219e754d 100644 (file)
@@ -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
index 96b1918e8f708357c15f685c8bf559ee95564f83..97d869c4a362b285150d14103058aa0d354ea944 100644 (file)
       {else}
       <div class="messages status no-popup">
              <div class="icon inform-icon"></div> &nbsp;
-             {ts 1=$newPageURL}No contribution pages have been created yet. Click <a accesskey="N" href='%1'>here</a> to create a new contribution page.{/ts}
+             {ts 1=$newPageURL}No Progressbars have been created yet. Click <a accesskey="N" href='%1'>here</a> to create a new Progressbar.{/ts}
       </div>
         {/if}
     {/if}