//setting default join date if there is no join date
if (empty($defaults['join_date'])) {
- $defaults['join_date'] = date('Y-m-d H:i:s');
+ $defaults['join_date'] = date('Y-m-d');
}
if (!empty($defaults['membership_end_date'])) {
}
if ($this->_action & CRM_Core_Action::ADD) {
- $this->add('text', 'num_terms', ts('Number of Terms'), array('size' => 6));
+ $this->add('number', 'num_terms', ts('Number of Terms'), array('size' => 6));
}
$this->add('text', 'source', ts('Source'),