Changeset 1518


Ignore:
Timestamp:
Feb 14, 2011, 11:20:09 AM (13 years ago)
Author:
j.saito@…
Message:

Fixed bug relating to Publication and SecUser?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/dbnp/studyexport/ExportService.groovy

    r1516 r1518  
    2525    static scope = "session"
    2626
     27
    2728    def grailsApplication
    2829    /**
     
    3233         *  @see #getRelatedObjects().
    3334     */
    34         def static IgnoredClasses = [ String, long, Date, Boolean, Publication, SecUser ]
     35        def static IgnoredClasses = [ String, long, Date, Boolean, SecUser, Publication, SecUser ]
     36
    3537
    3638    /**
     
    4345                        PersonRole, Template, TemplateField,
    4446                        TemplateFieldListItem, TemplateFieldType, Term ]
    45 
    4647
    4748
     
    6061                return getRelatedObjects( study )
    6162        }
    62 
    6363
    6464
     
    9797                }
    9898
     99                if( domainClass.toString()==~/class dbnp.authentication.SecUser.+/ ||
     100                    domainClass.toString()==~/class dbnp.studycapturing.Publication.+/ ) {
     101                        println "${domainClass} -- ${domainObject}"
     102                        return objects
     103                }
     104
     105
     106
    99107                if( TerminalClasses.contains(domainClass) )  {
    100108                        return [domainObject]
     
    122130                return objects.unique()
    123131        }
    124 
    125132
    126133
Note: See TracChangeset for help on using the changeset viewer.