Changeset 1481
- Timestamp:
- Feb 2, 2011, 4:35:38 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/taglib/dbnp/importer/ImporterTagLib.groovy
r1479 r1481 109 109 110 110 //def templatefields = (allfieldtypes=="true") ? t.fields : t.fields.findAll { it.type == mc.templatefieldtype } 111 def templatefields = (allfieldtypes == "true") ?111 /*def templatefields = (allfieldtypes == "true") ? 112 112 t.fields + mc.entity.giveDomainFields() : 113 t.fields.findAll { it.type == mc.templatefieldtype } + domainfields 113 t.fields.findAll { it.type == mc.templatefieldtype } + domainfields*/ 114 def templatefields = t.fields + mc.entity.giveDomainFields() 114 115 115 116 // map identifier to preferred column 116 117 def prefcolumn = mc.entity.giveDomainFields().findAll { it.preferredIdentifier == true } 117 118 118 (mc.identifier) ? out << createPropertySelect(attrs['name'], prefcolumn, matchvalue, mc.index) : 119 out << createPropertySelect(attrs['name'], templatefields, matchvalue, mc.index) 119 /*(mc.identifier) ? out << createPropertySelect(attrs['name'], prefcolumn, matchvalue, mc.index) : 120 out << createPropertySelect(attrs['name'], templatefields, matchvalue, mc.index)*/ 121 out << createPropertySelect(attrs['name'], templatefields, matchvalue, mc.index) 120 122 } 121 123
Note: See TracChangeset
for help on using the changeset viewer.