Changeset 1481


Ignore:
Timestamp:
Feb 2, 2011, 4:35:38 PM (6 years ago)
Author:
t.w.abma@…
Message:
  • all possible properties are shown in the select boxes (allfieldtypes=true)
File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.