Changeset 1377

Show
Ignore:
Timestamp:
12-01-11 16:50:46 (3 years ago)
Author:
t.w.abma@…
Message:

- removing cells, concurrentModificationException fixed?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/importer/ImporterController.groovy

    r1376 r1377  
    505505     */ 
    506506    def removeFailedCell(failedcells, entity) { 
     507        def tempfailedcells = [] 
     508        def tempfailedrecord = new ImportRecord() 
     509 
    507510        // Valid entity, remove it from failedcells 
     511 
    508512        failedcells.each { record -> 
    509513            record.importcells.each { cell -> 
    510514            // remove the cell from the failed cells session 
    511515                if (cell.entityidentifier == entity.getIdentifier()) { 
    512                     record.removeFromImportcells(cell) 
     516                    tempfailedrecord = record 
     517                    tempfailedrecord.removeFromImportcells(cell) 
     518                    record = tempfailedrecord 
    513519                } 
    514520            } // end of importcells