Changeset 545 for trunk/grails-app/taglib
- Timestamp:
- Jun 9, 2010, 12:54:12 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/taglib/dbnp/importer/ImporterTagLib.groovy
r534 r545 83 83 def mc = attrs['mappingcolumn'] 84 84 def allfieldtypes = attrs['allfieldtypes'] 85 def domainfields = mc.entity.giveDomainFields().findAll { it.type == mc.templatefieldtype } 86 domainfields = domainfields.findAll { it.preferredIdentifier != mc.identifier} 85 87 86 88 //def templatefields = (allfieldtypes=="true") ? t.fields : t.fields.findAll { it.type == mc.templatefieldtype } 87 89 def templatefields = (allfieldtypes=="true") ? 88 90 t.fields + mc.entity.giveDomainFields() : 89 t.fields.findAll { it.type == mc.templatefieldtype } + mc.entity.giveDomainFields()91 t.fields.findAll { it.type == mc.templatefieldtype } + domainfields 90 92 91 (mc.identifier) ? out << "<select style=\"font-size:10px\" name=\"\" disabled><option>Identifier</option></select>": 93 // map identifier to preferred column 94 def prefcolumn = mc.entity.giveDomainFields().findAll { it.preferredIdentifier == true } 95 96 (mc.identifier) ? out << createPropertySelect(attrs['name'], prefcolumn, mc.index) : 92 97 out << createPropertySelect(attrs['name'], templatefields, mc.index) 93 98 }
Note: See TracChangeset
for help on using the changeset viewer.