google-code-export / candydolldb

Automatically exported from code.google.com/p/candydolldb
0 stars 0 forks source link

Prefixed tags become duplicated during tagging #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Tag a set with, for example 'black socks'
2. See how the auto-suggest tags it to 'black black socks'

What is the expected output? What do you see instead?
A simple, single 'black socks' should be suggested.

Original issue reported on code.google.com by fwp...@gmail.com on 8 Apr 2012 at 7:39

GoogleCodeExporter commented 9 years ago
strange error indeed. I deleted 'black' from my tags and it stopped, but that 
is not a fix for it duplicating

And by the way, found out that my copy of 'diadem' tag had a trailing space in 
it, you should check yours just in case

Original comment by mranimos...@gmail.com on 9 Apr 2012 at 2:48

GoogleCodeExporter commented 9 years ago
did some more tagging and noticed it is not just prefixed tags. I have a tag 
called 'hair buns' and when I inserted it into another tag it inserted as 'hair 
hair buns'.

Original comment by mranimos...@gmail.com on 9 Apr 2012 at 3:10

GoogleCodeExporter commented 9 years ago
ok, if you have a single word tag like a color e.g. 'blue' in the db, and tags 
with a subset of that color like 'blue latex', the first time you insert the 2+ 
word tag it will duplicate the first single word tag and insert 'blue blue 
latex'. This seems to only happen in certain cases.

Going back and changing it and then deleting the 'blue blue latex' tag will 
prevent it from inserting it as doubled for that tag only. 

Original comment by mranimos...@gmail.com on 9 Apr 2012 at 3:17

GoogleCodeExporter commented 9 years ago
Resolved in r438 by reworking the value.replace() RegEx when clicking/ENTERing 
a selected tag.

Original comment by fwp...@gmail.com on 14 Apr 2012 at 2:18