<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
}
CRM_Core_Session::setStatus(ts("'%1' information has been saved.",
- array(1 => ($subPage == 'friend') ? 'Friend' : $className)
+ array(1 => CRM_Utils_Array::value('title', CRM_Utils_Array::value($subPage, $this->get('tabHeader')), $className))
), ts('Saved'), 'success');
$config = CRM_Core_Config::singleton();
CRM_Event_BAO_Event::updateParticipantCampaignID($eventID, $newCampaignID);
}
}
-
+ $this->postProcessHook();
if ($this->controller->getButtonName('submit') == "_qf_{$className}_upload_done") {
if ($this->_isTemplate) {
- CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/admin/eventTemplate',
- 'reset=1'
- ));
+ CRM_Core_Session::singleton()->pushUserContext(CRM_Utils_System::url('civicrm/admin/eventTemplate', 'reset=1'));
}
else {
- CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/event/manage',
- 'reset=1'
- ));
+ CRM_Core_Session::singleton()->pushUserContext(CRM_Utils_System::url('civicrm/event/manage', 'reset=1'));
}
}
else {
- CRM_Utils_System::redirect(CRM_Utils_System::url("civicrm/event/manage/{$subPage}",
+ CRM_Core_Session::singleton()->pushUserContext(CRM_Utils_System::url("civicrm/event/manage/{$subPage}",
"action=update&reset=1&id={$this->_id}"
));
}
}
function getTemplateFileName() {
- if ($this->controller->getPrint() == CRM_Core_Smarty::PRINT_NOFORM ||
- $this->getVar('_id') <= 0 ||
- ($this->_action & CRM_Core_Action::DELETE)
- ) {
+ if ($this->controller->getPrint() || $this->getVar('_id') <= 0 || $this->_action & CRM_Core_Action::DELETE) {
return parent::getTemplateFileName();
}
else {