Changeset 1219


Ignore:
Timestamp:
Nov 30, 2010, 10:50:36 AM (10 years ago)
Author:
adem.bilican@…
Message:

error in the SimpleTox? exporter for parentSubject attribut

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/exporter/ExporterController.groovy

    r1218 r1219  
    212212        // adding label (EventGroup) in row 6
    213213        for (ev in EventGroup.list()){
    214             if ( (sample.parentSubject.name) && (ev.subjects.name.contains(sample.parentSubject.name))) {
    215                 sub.createCell((short)5).setCellValue(ev.name)
    216                 break
    217             }
     214            if(sample.parentSubject){
     215                if ( (sample.parentSubject.name) && (ev.subjects.name.contains(sample.parentSubject.name))) {
     216                    sub.createCell((short)5).setCellValue(ev.name)
     217                    break
     218                }
     219                else {
     220                    sub.createCell((short)5).setCellValue(" ")
     221                }}
    218222            else {
    219223                sub.createCell((short)5).setCellValue(" ")
Note: See TracChangeset for help on using the changeset viewer.