Commit 538ed70c authored by Fabian Iwand's avatar Fabian Iwand Committed by Jacob Rockowitz
Browse files

Issue #3270541 by ciss: splitOption() discards description text after delimiter

parent 37b13f1e
Loading
Loading
Loading
Loading
+1 −1
Changes for src/Utility/WebformOptionsHelper.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ class WebformOptionsHelper {
   *   An array containing an option's text and description.
   */
  public static function splitOption($text) {
    return explode(static::DESCRIPTION_DELIMITER, $text);
    return explode(static::DESCRIPTION_DELIMITER, $text, 2);
  }

  /**