Fixed broken ORM.untagMediaFiles.
This commit is contained in:
parent
c1432477aa
commit
7f41f8c4e1
@ -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 = """
|
||||
|
Loading…
Reference in New Issue
Block a user