Fixed reused implied tags marked as duplicates

This commit is contained in:
Marcin Kurczewski 2014-11-30 12:48:17 +01:00
parent 924592675c
commit bc757dd883

View file

@ -202,7 +202,9 @@ App.Controls.TagInput = function($underlyingInput) {
var tag = getExportedTag(tagName); var tag = getExportedTag(tagName);
if (tag) { if (tag) {
_.each(tag.implications, function(impliedTagName) { _.each(tag.implications, function(impliedTagName) {
addTag(impliedTagName, SOURCE_IMPLICATIONS); if (!isTaggedWith(impliedTagName)) {
addTag(impliedTagName, SOURCE_IMPLICATIONS);
}
}); });
if (source !== SOURCE_IMPLICATIONS && source !== SOURCE_SUGGESTIONS) { if (source !== SOURCE_IMPLICATIONS && source !== SOURCE_SUGGESTIONS) {
showOrHideSuggestions(tagName); showOrHideSuggestions(tagName);