Changeset 1481

Show
Ignore:
Timestamp:
02-02-11 16:35:38 (3 years ago)
Author:
t.w.abma@…
Message:

- all possible properties are shown in the select boxes (allfieldtypes=true)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/taglib/dbnp/importer/ImporterTagLib.groovy

    r1479 r1481  
    109109 
    110110                //def templatefields = (allfieldtypes=="true") ? t.fields : t.fields.findAll { it.type == mc.templatefieldtype } 
    111                 def templatefields = (allfieldtypes == "true") ? 
     111                /*def templatefields = (allfieldtypes == "true") ? 
    112112                        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() 
    114115 
    115116                // map identifier to preferred column 
    116117                def prefcolumn = mc.entity.giveDomainFields().findAll { it.preferredIdentifier == true } 
    117118 
    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) 
    120122        } 
    121123