Ignore:
Timestamp:
Nov 7, 2011, 11:50:13 AM (12 years ago)
Author:
work@…
Message:
  • show shibboleth user properly
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/taglib/dbnp/studycapturing/WizardTagLib.groovy

    r1825 r2086  
    370370                        attrs.description = '';
    371371                }
    372                
     372
     373                def userList = []
     374                SecUser.findAll().each {
     375                        userList[ userList.size() ] = ['name':(it.shibbolethUser) ? it.displayName : it.username, 'id':it.id]
     376                }
     377
    373378                out << '<form id="' + attrs.name + '_form" onSubmit="return false;">';
    374379                out << select(
    375380                        name: attrs.get("name"),
    376381                        value: '',
    377                         from: SecUser.list(),
    378                         optionValue: 'username',
     382                        from: userList,
     383                        optionValue: 'name',
    379384                        optionKey: 'id',
    380385                        style: 'width: 400px;'
Note: See TracChangeset for help on using the changeset viewer.