if (array_key_exists('participant_campaign_id', $this->_fields)) {
$defaults['participant_campaign_id'] = CRM_Utils_Array::value('campaign_id', $this->_values['event']);
}
- CRM_Core_BAO_Address::fixAllStateSelects($this, $this->_defaults);
return $defaults;
}
}
foreach (array(
'first_name', 'last_name') as $name) {
- if (!empty($$keys[$name]) &&
+ if (array_key_exists($name, $$keys) &&
CRM_Utils_Array::value('is_required', CRM_Utils_Array::value($name, $$keys))
) {
$$name = 1;
/**
* global form rule
*
- * @param array $fields the input form values
- * @param array $files the uploaded files if any
- * @param array $options additional user data
+ * @param array $fields the input form values
+ * @param array $files the uploaded files if any
+ * @param $self
+ *
+ * @internal param array $options additional user data
*
* @return true if no errors, else array of errors
* @access public
return $errors;
}
+ /**
+ * @param $self
+ * @param $fields
+ *
+ * @return bool
+ */
function validatePaymentValues($self, $fields) {
if (!empty($self->_params[0]['bypass_payment']) ||
// Check whether to process the registration now, calling processRegistration()
if (
!$this->_values['event']['is_confirm_enabled'] // CRM-11182 - Optional confirmation screen
+ && !$this->_values['event']['is_monetary']
&& CRM_Utils_Array::value('additional_participants', $this->_params[0])
&& $this->isLastParticipant()
) {
}
}
+ /**
+ * @param $additionalParticipant
+ *
+ * @return array
+ */
public static function &getPages($additionalParticipant) {
$details = array();
for ($i = 1; $i <= $additionalParticipant; $i++) {
/**
* check whether call current participant is last one
*
+ * @param bool $isButtonJs
+ *
* @return boolean ture on success.
* @access public
*/
}
}
+ /**
+ * @param $elementName
+ * @param array $optionIds
+ */
function resetSubmittedValue($elementName, $optionIds = array(
)) {
if (empty($elementName) ||