Ignore:
Timestamp:
May 4, 2010, 5:03:21 PM (11 years ago)
Author:
keesvb
Message:

switched back from the fancy 'integrate domain fields as system fields directly into the Template object at the time of creation' method to the plain 'implement getFieldValue, setFieldValue and giveFields to work for both domain and template fields'. NB: this might affect Events, since until now startTime and endTime were moved directly into template! Switch any Event.template.fields to Event.giveFields()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/Study.groovy

    r389 r392  
    2323        //String ecCode
    2424
    25         Map giveDomainFields() {
    26                 return ['title':TemplateFieldType.STRING,'startDate':TemplateFieldType.DATE]
     25        List<TemplateField> giveDomainFields() {
     26                [ new TemplateField(
     27                            name: 'title',
     28                            type: TemplateFieldType.STRING),
     29                        new TemplateField(
     30                            name: 'startDate',
     31                            type: TemplateFieldType.DATE) ];
    2732        }
    2833
Note: See TracChangeset for help on using the changeset viewer.