Skip to content

Commit b8aa171

Browse files
author
Adam Collins
committed
#230 Fix childInstitution fetch
1 parent 7f6af58 commit b8aa171

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

grails-app/domain/au/org/ala/collectory/Institution.groovy

+3-3
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ class Institution implements ProviderGroup, Serializable {
104104
* @return List of Collection
105105
*/
106106
def listCollections() {
107-
List result = collections.collect {it}
107+
List result = collections.collect { it }
108108
if (childInstitutions) {
109109
def list = childInstitutions.tokenize(' ')
110-
Collections.createCriteria().list (fetch: [collections: 'join']) {
111-
in ('id', list)
110+
Institution.createCriteria().list(fetch: [collections: 'join']) {
111+
in ('uid', list )
112112
}.each {
113113
result.addAll it.listCollections()
114114
}

0 commit comments

Comments
 (0)