Changeset 1378


Ignore:
Timestamp:
Jan 12, 2011, 4:59:00 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

    r1377 r1378  
    504504     * @param entity entity to remove from the failedcells list
    505505     */
    506     def removeFailedCell(failedcells, entity) {
    507         def tempfailedcells = []
    508         def tempfailedrecord = new ImportRecord()
    509 
     506    def removeFailedCell(failedcells, entity) {       
    510507        // Valid entity, remove it from failedcells
    511 
    512508        failedcells.each { record ->
    513509            record.importcells.each { cell ->
    514510            // remove the cell from the failed cells session
    515511                if (cell.entityidentifier == entity.getIdentifier()) {
    516                     tempfailedrecord = record
    517                     tempfailedrecord.removeFromImportcells(cell)
    518                     record = tempfailedrecord
     512                    //record.removeFromImportcells(cell)
     513                    cell.remove()
    519514                }
    520515            } // end of importcells
Note: See TracChangeset for help on using the changeset viewer.