Changeset 1777


Ignore:
Timestamp:
Apr 19, 2011, 4:54:46 PM (6 years ago)
Author:
work@…
Message:
  • first() does not seem to work properly on hibernate lazily fetched map elements
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/studycapturing/StudyWizardController.groovy

    r1775 r1777  
    11771177                        // See #367, #397 and #398
    11781178                        flow.study.hasMany.each { name, instance ->
    1179                                 if (flow.study."${name}"?.size() && flow.study."${name}"?.first().hasProperty('template')) {
    1180                                         flow.study."${name}"?.each { it.getIdentifier() }
     1179                                flow.study."${name}"?.each {
     1180                                        if (it.hasProperty('template')) it.getIdentifier()
    11811181                                }
    11821182                        }
Note: See TracChangeset for help on using the changeset viewer.