Changeset 1377


Ignore:
Timestamp:
Jan 12, 2011, 4:50:46 PM (6 years ago)
Author:
t.w.abma@…
Message:
  • removing cells, concurrentModificationException fixed?
File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.