Changeset 296 for trunk/grails-app/controllers
- Timestamp:
- Mar 22, 2010, 1:44:00 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/studycapturing/WizardController.groovy
r281 r296 461 461 } 462 462 463 // TODO: eventDescriptions that are not linked to an event are currently 464 // stored but end up in a black hole. We should either decide to 465 // NOT store these eventDescriptions, or add "hasmany eventDescriptions" 466 // to Study domain class 467 463 468 // save events 464 469 flow.events.each() { … … 579 584 580 585 // update study instance with parameters 581 params.each() { key, value ->586 params.each() { key, value -> 582 587 if (flow.study.hasProperty(key)) { 583 588 flow.study.setProperty(key, value); 589 } 590 } 591 592 // walk through template fields 593 params.template.fields.each() { field -> 594 def value = params.get(field.escapedName()) 595 596 if (value) { 597 flow.study.setFieldValue(field.name, value) 584 598 } 585 599 } … … 698 712 // iterate through template fields 699 713 templateFields.each() { subjectField -> 700 def value = params.get('subject_' + subjectId + '_' + subjectField. name)714 def value = params.get('subject_' + subjectId + '_' + subjectField.escapedName()) 701 715 702 716 if (value) {
Note: See TracChangeset
for help on using the changeset viewer.