Ignore:
Timestamp:
Dec 9, 2010, 2:51:51 PM (7 years ago)
Author:
work@…
Message:
  • moved 'description' from study template fields into domain variables so that every study will contain a -non required- description which is more logical
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/Study.groovy

    r1233 r1245  
    1616        SecUser owner           // The owner of the study. A new study is automatically owned by its creator.
    1717        String title            // The title of the study
    18         String code              // currently used as the external study ID, e.g. to reference a study in a SAM module
     18        String description      // A brief synopsis of what the study is about
     19        String code                     // currently used as the external study ID, e.g. to reference a study in a SAM module
    1920        Date dateCreated
    2021        Date lastUpdated
     
    7475                        type: TemplateFieldType.STRING,
    7576                        required: true),
     77                new TemplateField(
     78                        name: 'description',
     79                        type: TemplateFieldType.TEXT,
     80                        comment:'Give a brief synopsis of what your study is about',
     81                        required: false),
    7682                new TemplateField(
    7783                        name: 'code',
     
    431437                // User that are not logged in, are not allowed to write to a study
    432438                if (user == null)
    433                 return [];
     439                        return [];
    434440
    435441                def c = Study.createCriteria()
Note: See TracChangeset for help on using the changeset viewer.