if (in_array($value[0], $optIds)) {
foreach ($element->_options as $option) {
if ($option['attr']['value'] === "crm_disabled_opt-{$value[0]}") {
- $placeholder = html_entity_decode($option['text']);
+ $placeholder = html_entity_decode($option['text'], ENT_QUOTES, "UTF-8");
$element->updateAttributes(array('placeholder' => $placeholder));
break;
}
CRM_Core_Form::validateMandatoryFields($self->_fields, $fields, $errors);
// validate supplied payment instrument values (e.g. credit card number and cvv)
- $payment_processor_id = $self->params[0]['payment_processor_id'];
+ $payment_processor_id = $self->_params[0]['payment_processor'];
CRM_Core_Payment_Form::validatePaymentInstrument($payment_processor_id, $self->_params[0], $errors, $self);
if (!empty($errors)) {
}
}
}
+ return TRUE;
}
/**
) {
$priceSetErrors = self::validatePriceSet($self, $self->_params);
if (!empty($priceSetErrors)) {
- CRM_Core_Session::setStatus(ts('You have been returned to the start of the registration process and any sold out events have been removed from your selections. You will not be able to continue until you review your booking and select different events if you wish. The following events were sold out:'), ts('Unfortunately some of your options have now sold out for one or more participants.'), 'error');
+ CRM_Core_Session::setStatus(ts('You have been returned to the start of the registration process and any sold out events have been removed from your selections. You will not be able to continue until you review your booking and select different events if you wish.'), ts('Unfortunately some of your options have now sold out for one or more participants.'), 'error');
CRM_Core_Session::setStatus(ts('Please note that the options which are marked or selected are sold out for participant being viewed.'), ts('Sold out:'), 'error');
CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/event/register', "_qf_Register_display=true&qfKey={$fields['qfKey']}"));
}