class CRM_Mailing_Form_Settings extends CRM_Core_Form {
/**
- * Function to set variables up before form is built
+ * Set variables up before form is built
*
* @return void
* @access public
}
/**
- * This function sets the default values for the form.
+ * Set default values for the form.
* the default values are retrieved from the database
*
* @access public
*/
function setDefaultValues() {
$mailingID = CRM_Utils_Request::retrieve('mid', 'Integer', $this, FALSE, NULL);
+ // CRM-14716 - Pick up mailingID from session since most of the time it's not in the URL
+ if (!$mailingID) {
+ $mailingID = $this->get('mailing_id');
+ }
$count = $this->get('count');
$this->assign('count', $count);
$defaults = array();
$dao->override_verp = !$dao->override_verp;
$dao->storeValues($dao, $defaults);
$defaults['visibility'] = $dao->visibility;
-
- crm_core_error::debug('$dao->visibility', $dao->visibility);
- exit();
-
}
+
return $defaults;
}
/**
- * Function to actually build the form
+ * Build the form object
*
* @return void
* @access public