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

vidorado created an issue. See original summary.

vidorado’s picture

This 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..

svenryen’s picture

Status: Active » Needs review

  • svenryen committed 216f3eb on 8.x-1.x authored by vidorado
    Issue #3270780 by vidorado, svenryen: "Invalid character in Config...
svenryen’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.