Changeset 1676

Show
Ignore:
Timestamp:
28-03-11 11:30:01 (3 years ago)
Author:
t.w.abma@…
Message:

- first page in importer wizard, study shows [no code] when study contains null as code and studies are now sorted by code

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/importer/ImporterController.groovy

    r1658 r1676  
    108108 
    109109                                flow.page = 1 
    110                                 flow.studies = Study.findAllWhere(owner: authenticationService.getLoggedInUser()) 
     110                                flow.studies = Study.findAllByOwner(authenticationService.getLoggedInUser(), [sort:"code", order:"asc"]).each { 
     111                    it.code = (it.code == null) ? "[no code]" : it.code 
     112                } 
    111113                                flow.importer_fuzzymatching = "false" 
    112114