Changeset 900


Ignore:
Timestamp:
Sep 26, 2010, 12:39:18 AM (10 years ago)
Author:
keesvb
Message:

fix for bug #164 (workaround for GRAILS-6754)

Location:
trunk/grails-app/domain/dbnp/studycapturing
Files:
2 edited

Legend:

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

    r874 r900  
    4040                        return (!error)
    4141                })
    42         }
    43 
    44         static mapping = {
    45 
    46                 // Specify that subclasses for Event should have their own database table.
    47                 // This is done because otherwise we run into troubles with the SamplingEvent references from Study.
    48                 tablePerHierarchy false
    4942        }
    5043
  • trunk/grails-app/domain/dbnp/studycapturing/Study.groovy

    r874 r900  
    1313class Study extends TemplateEntity {
    1414        static searchable = {
    15         [only: ['title', 'Description']]
     15        [only: ['title', 'Description']] // the description field will be searched only if defined in a study template
    1616    }
    1717
     
    4848
    4949        static mapping = {
    50                 researchQuestion type: 'text'
    51                 description type: 'text'
    5250                autoTimestamp true
     51
     52                // Workaround for bug http://jira.codehaus.org/browse/GRAILS-6754
     53                templateTextFields type: 'text'
     54
    5355        }
    5456
Note: See TracChangeset for help on using the changeset viewer.