Tokens with a < or > in the key (for example "list<$token_type>") breaks the js ui. Adding replacements '<' => '-' and '>' => '-' solves this.

Files: 
CommentFileSizeAuthor
#1 token-characters_break_js_ui-1557766-1.patch644 bytesauth
PASSED: [[SimpleTest]]: [MySQL] 342 pass(es). View

Comments

auth’s picture

FileSize
644 bytes
PASSED: [[SimpleTest]]: [MySQL] 342 pass(es). View

Attaching patch

Deciphered’s picture

Status: Active » Needs review

Marking as 'needs review'.

Status: Needs review » Needs work

The last submitted patch, token-characters_break_js_ui-1557766-1.patch, failed testing.

nyleve101’s picture

Hi Auth,

I'm also experiencing this issue, which your patch solves for me, will you be updating your patch?

Hope you're well!

Dave Reid’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, token-characters_break_js_ui-1557766-1.patch, failed testing.

Dave Reid’s picture

Status: Needs work » Needs review
Dave Reid’s picture

Status: Needs review » Fixed

Thanks, committed to 7.x-1.x now that I fixed the random test failure.
http://drupalcode.org/project/token.git/commit/02dfbd4

Status: Fixed » Closed (fixed)

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