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,
List<String> tagNames) {
withTranscation {
List<Tag> tags = tagNames.collect(getTagByName).findAll()
def tagPlaceholders = tags.collect { '?' }.join(', ')
withTransaction {
List<Tag> tags = tagNames.collect(this.&getTagByName).findAll()
def tagPlaceHolders = tags.collect { '?' }.join(', ')
def tagIds = tags.collect { it.id }
String deleteQuery = """