If I select several content types in the visibility settings for my response header settings I get the following error:

PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'types' at row 1:

The mysql column "type" has a length of 64, so we get an error when it is inserted.

Comments

vijaycs85’s picture

Hmm,we might need to update the field length.

leon kessler’s picture

Status: Active » Needs review
StatusFileSize
new1.46 KB

Patch attached...

leon kessler’s picture

I set them both to "text", same as the pages db column.

leon kessler’s picture

StatusFileSize
new1.46 KB

Whoops, had wrong field name in db_change_field(). call ("type" instead of "types").