Problem/Motivation
When updating database with a drush updb after an EU Cookie Compliance module update, there is a hook_update which transforms categories to standalone config entites.
eu_cookie_compliance_update_8123
This update hook tries to detect categories from current config using _eu_cookie_compliance_extract_category_key_label_description function, but fails if there are line breaks in category descriptions. That occurs because we have HTML in those descriptions, but may occur also if anyone sets a line break on them.
Proposed resolution
Improve category detection in _eu_cookie_compliance_extract_category_key_label_description method
Comments
Comment #2
vidorado commentedThis patch works when THERE ARE html tags in category descriptions. I am not sure how we could distinguish legitimate line breaks from not ones in descriptions with line breaks but not HTML..
Comment #3
svenryen commentedComment #5
svenryen commented