Commit ed5a8c7e authored by Christopher Lewis's avatar Christopher Lewis Committed by Aaron Bauman
Browse files

Issue #3307571 by mrshowerman: Support webform_name fields in mapping

parent 00adc978
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -134,7 +134,7 @@ class WebformElements extends SalesforceMappingFieldPluginBase {

    // Loop over every field on the webform.
    foreach ($webform_elements as $element_id => $element) {
      if ($element['#type'] == 'webform_address') {
      if (in_array($element['#type'], ['webform_address', 'webform_name'])) {
        $element = $webform->getElement($element_id, TRUE);
        foreach ($element['#webform_composite_elements'] as $sub_element) {
          $options[$sub_element['#webform_composite_key']] = $element['#title'] . ': ' . (string) $sub_element['#title'];