Ignore:
Timestamp:
Jan 7, 2011, 2:05:40 PM (10 years ago)
Author:
work@…
Message:
  • fix for Javassist issue #254, needs some thorough testing...
File:
1 edited

Legend:

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

    r1339 r1348  
    11441144            if (!study.canWrite(user)){
    11451145                                return false
    1146                         }
    1147 
    1148                         // Grails tends to lazily initialize objects. While in theory this
    1149                         // is a nice feature, it does not work well with our complex setup
    1150                         // using the Identity class to match POST variables with object
    1151                         // instances. This lazy initialization caused two issues:
    1152                         // #147 and #223, and both are now resolved by forcing objects to
    1153                         // be instantiated / initialized when a study is loaded from the
    1154                         // database
    1155                         study.template
    1156                         study.hasMany.each { name, type ->
    1157                                 // dynamically instantiate all identity classes
    1158                                 if (type.toString() =~ "dbnp.studycapturing") {
    1159                                         study.getProperty( name ).each { }
    1160                                 }
    11611146                        }
    11621147
Note: See TracChangeset for help on using the changeset viewer.