- Timestamp:
- May 4, 2010, 5:03:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/Template.groovy
r384 r392 23 23 // see http://jira.codehaus.org/browse/GRAILS-6020 24 24 // name(unique:['entity']) 25 }26 27 // As the entity is not known at the time the constructor is called,28 // we add the system fields for a new template object at the time the entity is set29 void setEntity(Class value) {30 this.entity = value31 if (value != null) {32 if (fields == null) {33 if (entity.systemFields) {34 println "adding default template fields for " + entity.systemFields35 entity.systemFields.each {36 this.addToFields(it)37 }38 }39 }40 println "" + value + "this template has now fields " + fields41 }42 43 25 } 44 26
Note: See TracChangeset
for help on using the changeset viewer.