Changeset 1348
- Timestamp:
- Jan 7, 2011, 2:05:40 PM (12 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/studycapturing/StudyWizardController.groovy
r1339 r1348 1144 1144 if (!study.canWrite(user)){ 1145 1145 return false 1146 }1147 1148 // Grails tends to lazily initialize objects. While in theory this1149 // is a nice feature, it does not work well with our complex setup1150 // using the Identity class to match POST variables with object1151 // instances. This lazy initialization caused two issues:1152 // #147 and #223, and both are now resolved by forcing objects to1153 // be instantiated / initialized when a study is loaded from the1154 // database1155 study.template1156 study.hasMany.each { name, type ->1157 // dynamically instantiate all identity classes1158 if (type.toString() =~ "dbnp.studycapturing") {1159 study.getProperty( name ).each { }1160 }1161 1146 } 1162 1147 -
trunk/grails-app/domain/dbnp/studycapturing/Template.groovy
r1272 r1348 20 20 * $Date$ 21 21 */ 22 class Template extends Identity{22 class Template implements Serializable { 23 23 24 24 /** The name of the template */
Note: See TracChangeset
for help on using the changeset viewer.