Changeset 723


Ignore:
Timestamp:
Nov 28, 2010, 12:05:27 PM (13 years ago)
Author:
gav
Message:

No domain change, avoid possible bug by using toLong() instead of toInteger() in setFromCheckBoxList().

Location:
trunk/grails-app/domain
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/Asset.groovy

    r704 r723  
    5353        if(ids instanceof String) {
    5454                if(ids.isInteger())
    55                     idList << ids.toInteger()
     55                    idList << ids.toLong()
    5656        }
    5757        else {
    5858            ids.each() {
    5959                if(it.isInteger())
    60                     idList << it.toInteger()
     60                    idList << it.toLong()
    6161            }
    6262        }
  • trunk/grails-app/domain/Person.groovy

    r633 r723  
    5858        if(ids instanceof String) {
    5959                if(ids.isInteger())
    60                     idList << ids.toInteger()
     60                    idList << ids.toLong()
    6161        }
    6262        else {
    6363            ids.each() {
    6464                if(it.isInteger())
    65                     idList << it.toInteger()
     65                    idList << it.toLong()
    6666            }
    6767        }
     
    7575        if(ids instanceof String) {
    7676                if(ids.isInteger())
    77                     idList << ids.toInteger()
     77                    idList << ids.toLong()
    7878        }
    7979        else {
    8080            ids.each() {
    8181                if(it.isInteger())
    82                     idList << it.toInteger()
     82                    idList << it.toLong()
    8383            }
    8484        }
Note: See TracChangeset for help on using the changeset viewer.