Fixed broken ORM.untagMediaFiles.

This commit is contained in:
Jonathan Bernard 2016-03-16 02:30:07 -05:00
parent c1432477aa
commit 7f41f8c4e1

View File

@ -825,9 +825,9 @@ public class ORM {
public def untagMediaFiles(List<Integer> mediaFileIds, public def untagMediaFiles(List<Integer> mediaFileIds,
List<String> tagNames) { List<String> tagNames) {
withTranscation { withTransaction {
List<Tag> tags = tagNames.collect(getTagByName).findAll() List<Tag> tags = tagNames.collect(this.&getTagByName).findAll()
def tagPlaceholders = tags.collect { '?' }.join(', ') def tagPlaceHolders = tags.collect { '?' }.join(', ')
def tagIds = tags.collect { it.id } def tagIds = tags.collect { it.id }
String deleteQuery = """ String deleteQuery = """