Changeset 1539

Show
Ignore:
Timestamp:
21-02-11 12:29:42 (3 years ago)
Author:
robert@…
Message:

Fixed #299: readers and writers are not correctly saved

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/studycapturing/StudyWizardController.groovy

    r1488 r1539  
    13381338                def users = [] 
    13391339 
    1340                 if (type == "readers") { 
    1341                         users = flow.study.readers ?: [] 
    1342                 } else if (type == "writers") { 
    1343                         users = flow.study.writers ?: [] 
     1340                if (type == "readers" && flow.study.readers ) { 
     1341                        users += flow.study.readers 
     1342                } else if (type == "writers" && flow.study.writers ) { 
     1343                        users += flow.study.writers 
    13441344                } 
    13451345