Closed (fixed)
Project:
Webform
Version:
6.1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Mar 2022 at 22:13 UTC
Updated:
24 May 2022 at 15:09 UTC
Jump to comment: Most recent
WebformOptionsHelper::splitOption() currently splits on all occurrences of the delimiter " -- ", but callers consume only the first two items. If a description contains the phrase " -- ", any text after it will be discarded.
Descriptions can be allowed to contain " -- " by passing a limit to explode():
public static function splitOption($text) {
return explode(static::DESCRIPTION_DELIMITER, $text, 2);
}
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
ciss commentedComment #4
jrockowitz commentedThis change can also be applied to 6.1.x
Comment #5
jrockowitz commentedComment #6
jrockowitz commentedI tried changing the target to 6.1.x and does not seem to work as expected. I guess we can cherry pick the commit.
Comment #10
jrockowitz commented