mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix bug that prevented tags with capital letters from being deleted.
This commit is contained in:
@@ -1537,9 +1537,6 @@ class ItemTagAssociation ( object ):
|
||||
self.value = None
|
||||
self.user_value = None
|
||||
|
||||
def __str__ ( self ):
|
||||
return "%s(item_id=%s, item_tag=%s, user_tname=%s, value=%s, user_value=%s)" % (self.__class__.__name__, self.item_id, self.tag_id, self.user_tname, self.value. self.user_value )
|
||||
|
||||
class HistoryTagAssociation ( ItemTagAssociation ):
|
||||
pass
|
||||
|
||||
|
||||
@@ -211,12 +211,12 @@ class TagHandler( object ):
|
||||
|
||||
return tag
|
||||
|
||||
def _get_item_tag_assoc(self, user, item, tag_name):
|
||||
"""Return ItemTagAssociation object for an item and a tag string; returns None if there is
|
||||
no such tag."""
|
||||
scrubbed_tag_name = self._scrub_tag_name(tag_name)
|
||||
def _get_item_tag_assoc( self, user, item, tag_name ):
|
||||
"""Return ItemTagAssociation object for a user, item, and tag string; returns None if there is
|
||||
no such association."""
|
||||
scrubbed_tag_name = self._scrub_tag_name( tag_name )
|
||||
for item_tag_assoc in item.tags:
|
||||
if ( item_tag_assoc.user == user ) and ( item_tag_assoc.tag.name == scrubbed_tag_name ):
|
||||
if ( item_tag_assoc.user == user ) and ( item_tag_assoc.user_tname == scrubbed_tag_name ):
|
||||
return item_tag_assoc
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user