Skip to content

Commit 2f9c91b

Browse files
author
Katrin
committed
Change form to accept quantity select, clean up
1 parent 020479f commit 2f9c91b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

webform_paymethod_select.line_item.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ function webform_paymethod_select_element_process_line_item(array $element, arra
6464
if ($form_builder && is_numeric($defaults->quantity_component)) {
6565
$defaults->quantity_component = 'cid_' . $defaults->quantity_component;
6666
}
67+
if ($form_builder && is_numeric($defaults->quantity_component)) {
68+
$defaults->quantity_component = 'cid_' . $defaults->quantity_component;
69+
}
6770

6871
$radio_id = drupal_html_id('webform-paymethod-select-' . $key . '-amount-source');
6972
$line_element['amount_source'] = array(
@@ -242,6 +245,7 @@ function webform_paymethod_select_element_validate_line_item(array $element, arr
242245
// Convert the raw input to a PaymentLineItem object.
243246
$line_items[] = new \Drupal\webform_paymethod_select\PaymethodLineItem($data);
244247
}
248+
245249
form_set_value($element, $line_items, $form_state);
246250
}
247251

0 commit comments

Comments
 (0)