jquery-tokeninput icon indicating copy to clipboard operation
jquery-tokeninput copied to clipboard

Some tags get enclosed in single quotes

Open zooshme opened this issue 13 years ago • 3 comments

Hi I've noticed that some tags get enclosed in single quotes. I couldn't identify a pattern though. Is this a bug that you're aware of or could it be that I'm doing something wrong?

zooshme avatar May 24 '12 23:05 zooshme

It seems the last tag in the list that gets enclosed in single quotes.

zooshme avatar May 25 '12 00:05 zooshme

Hey @myresearchstyle. Can you provide a more detailed explanation of this? I couldn't understand what is the issue you are pointing.

Thanks.

vdepizzol avatar May 25 '12 01:05 vdepizzol

Same problem.

Parameters: "tag_list"=>"'Spotify','Mobile'"

ActsAsTaggableOn::Tag Load (1.3ms) SELECT "tags".* FROM "tags" WHERE (name ILIKE 'Spotify' OR name ILIKE '''Mobile''')

INSERT INTO "tags" ("name") VALUES ($1) RETURNING "id" [["name", "'Mobile'"]]

First tag (Spotify) shows ok but second (Mobile) shows 'Mobile'

jferrercas avatar Jun 19 '12 15:06 jferrercas