}
/**
- * Build the form object
+ * Build the form object.
*
* @return void
*/
}
$this->addElement('checkbox', 'is_active', ts('Active'));
+ if ($this->_context == 'dashboard') {
+ CRM_Core_Session::singleton()->pushUserContext(CRM_Utils_System::url('civicrm/admin/pcp', 'reset=1'));
+ }
$this->addButtons(
array(
}
/**
- * Global form rule
+ * Global form rule.
*
* @param array $fields
* The input form values.
}
/**
- * Process the form submission
+ * Process the form submission.
*
*
* @return void
*/
public function postProcess() {
$params = $this->controller->exportValues($this->_name);
- $checkBoxes = array('is_thermometer', 'is_honor_roll', 'is_active');
+ $checkBoxes = array('is_thermometer', 'is_honor_roll', 'is_active', 'is_notify');
foreach ($checkBoxes as $key) {
if (!isset($params[$key])) {