Commit 2df43dfb authored by Andrey Vitushkin's avatar Andrey Vitushkin
Browse files

Was fixed Issue #3066162: Hidden composite field does not have #title.

parent e95747f9
Loading
Loading
Loading
Loading
+1 −1
Changes for src/Event/RulesWebformEventBase.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ class RulesWebformEventBase extends Event {
      else {
        // Exclude wizard pages and buttons from the list of elements.
        if (($options['#type'] != 'webform_wizard_page') && ($options['#type'] != "webform_actions")) {
          $fields_definitions[$name] = (string) $options['#title'];
          $fields_definitions[$name] = (string) isset($options['#title']) ? $options['#title'] : '';
          // If a user will submit an empty webform which contents composite element,
          // then value of this element can be 'NULL'.
          // Therefore prefill the array of webform_fields to prevent error message appearance.