Problem/Motivation

When a "text" or "string" field translation is bigger than 255bytes the module uses the php function substr to trim it. With special characters this can cause an error when saving the term.

Proposed resolution

Replace the substr function with mb_substr in the function translateTextField of the TranslationForm.

Comments

joao.lemos created an issue. See original summary.

kallado’s picture

Assigned: joao.lemos » kallado

  • kallado committed 395f75e9 on 1.0.x
    Issue #3347658 by joao.lemos: Replace the substr function with mb_substr
    
kallado’s picture

@joao.lemos Will be fixed in the next version.

kallado’s picture

Status: Active » Fixed
jmauricio’s picture

Status: Fixed » Closed (fixed)
kallado’s picture