break;
case 'select':
- if (in_array($element->getValue()[0], $optIds)) {
+ $value = $element->getValue();
+ if (in_array($value[0], $optIds)) {
foreach ($element->_options as $option) {
if ($option['attr']['value'] === "crm_disabled_opt-{$element->getValue()[0]}") {
$placeholder = html_entity_decode($option['text']);
if ($params['tax_amount']) {
$this->set('tax_amount', $params['tax_amount']);
}
- if (!empty($this->get('lineItem')) && is_array($this->get('lineItem'))) {
- $submittedLineItems = $this->get('lineItem');
+ $submittedLineItems = $this->get('lineItem');
+ if (!empty($submittedLineItems) && is_array($submittedLineItems)) {
$submittedLineItems[0] = $lineItem;
}
else {