When a taxonomy term reference field is used as a visibility rule, the following error is shown on the admin page:
Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain() (line 1569 of includes/bootstrap.inc).

This is because it does not collapse the term array prior to passing it into the t() function.

CommentFileSizeAuthor
#1 ctools-n2280905-1.patch612 bytesDamienMcKenna
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DamienMcKenna’s picture

Status: Active » Needs review
FileSize
612 bytes

This checks the value and, if an array is found, it collapses the array and uses " or " as the separator.

Status: Needs review » Needs work

The last submitted patch, 1: ctools-n2280905-1.patch, failed testing.

petermallett’s picture

Status: Needs work » Needs review

Pulled this up to attempt a re-roll, but it looks like this issue has been fixed in a different way in https://www.drupal.org/node/1630820

Chris Matthews’s picture

Status: Needs review » Fixed
joelpittet’s picture

Status: Fixed » Closed (fixed)

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