Changeset 403 for trunk


Ignore:
Timestamp:
Feb 23, 2010, 2:28:24 PM (15 years ago)
Author:
gav
Message:

Change all controllers to use default.optimistic.locking.failure.

Location:
trunk/grails-app/controllers
Files:
49 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/AddressDetailedController.groovy

    r397 r403  
    6666                def version = params.version.toLong()
    6767                if(addressInstance.version > version) {
    68                    
    69                     addressInstance.errors.rejectValue("version", "address.optimistic.locking.failure", "Another user has updated this Address while you were editing.")
     68
     69                    addressInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    7070                    render(view:'edit',model:[addressInstance:addressInstance])
    7171                    return
  • trunk/grails-app/controllers/AppConfigController.groovy

    r234 r403  
    6161                if(appConfigInstance.version > version) {
    6262                   
    63                     appConfigInstance.errors.rejectValue("version", "appConfig.optimistic.locking.failure", "Another user has updated this AppConfig while you were editing.")
     63                    appConfigInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[appConfigInstance:appConfigInstance])
    6565                    return
  • trunk/grails-app/controllers/AssetDetailedController.groovy

    r390 r403  
    281281                if(assetInstance.version > version) {
    282282
    283                     assetInstance.errors.rejectValue("version", "asset.optimistic.locking.failure", "Another user has updated this Asset while you were editing.")
     283                    assetInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    284284                    render(view:'edit',model:[assetInstance:assetInstance, possibleAssetSubItems: assetService.possibleAssetSubItems()])
    285285                    return
  • trunk/grails-app/controllers/AssetExtendedAttributeDetailedController.groovy

    r298 r403  
    5757                if(assetExtendedAttributeInstance.version > version) {
    5858                   
    59                     assetExtendedAttributeInstance.errors.rejectValue("version", "assetExtendedAttribute.optimistic.locking.failure", "Another user has updated this AssetExtendedAttribute while you were editing.")
     59                    assetExtendedAttributeInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6060                    render(view:'edit',model:[assetExtendedAttributeInstance:assetExtendedAttributeInstance])
    6161                    return
  • trunk/grails-app/controllers/AssetSubItemDetailedController.groovy

    r387 r403  
    158158                if(assetSubItemInstance.version > version) {
    159159
    160                     assetSubItemInstance.errors.rejectValue("version", "assetSubItem.optimistic.locking.failure", "Another user has updated this AssetSubItem while you were editing.")
     160                    assetSubItemInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    161161                    render(view:'edit',model:[assetSubItemInstance:assetSubItemInstance])
    162162                    return
  • trunk/grails-app/controllers/AssetSubItemExtendedAttributeDetailedController.groovy

    r298 r403  
    5757                if(assetSubItemExtendedAttributeInstance.version > version) {
    5858                   
    59                     assetSubItemExtendedAttributeInstance.errors.rejectValue("version", "assetSubItemExtendedAttribute.optimistic.locking.failure", "Another user has updated this AssetSubItemExtendedAttribute while you were editing.")
     59                    assetSubItemExtendedAttributeInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6060                    render(view:'edit',model:[assetSubItemExtendedAttributeInstance:assetSubItemExtendedAttributeInstance])
    6161                    return
  • trunk/grails-app/controllers/AssignedGroupController.groovy

    r242 r403  
    6161                if(assignedGroupInstance.version > version) {
    6262                   
    63                     assignedGroupInstance.errors.rejectValue("version", "assignedGroup.optimistic.locking.failure", "Another user has updated this AssignedGroup while you were editing.")
     63                    assignedGroupInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[assignedGroupInstance:assignedGroupInstance])
    6565                    return
  • trunk/grails-app/controllers/AssignedPersonController.groovy

    r241 r403  
    6161                if(assignedPersonInstance.version > version) {
    6262                   
    63                     assignedPersonInstance.errors.rejectValue("version", "assignedPerson.optimistic.locking.failure", "Another user has updated this AssignedPerson while you were editing.")
     63                    assignedPersonInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[assignedPersonInstance:assignedPersonInstance])
    6565                    return
  • trunk/grails-app/controllers/AuthorityController.groovy

    r178 r403  
    8181        long version = params.version.toLong()
    8282        if (authority.version > version) {
    83             authority.errors.rejectValue 'version', 'authority.optimistic.locking.failure',
    84                 'Another user has updated this Authority while you were editing.'
     83            authority.errors.rejectValue 'version', "default.optimistic.locking.failure"
    8584            render view: 'edit', model: [authority: authority]
    8685            return
  • trunk/grails-app/controllers/DepartmentDetailedController.groovy

    r288 r403  
    6262                if(departmentInstance.version > version) {
    6363                   
    64                     departmentInstance.errors.rejectValue("version", "department.optimistic.locking.failure", "Another user has updated this Department while you were editing.")
     64                    departmentInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6565                    render(view:'edit',model:[departmentInstance:departmentInstance])
    6666                    return
  • trunk/grails-app/controllers/DepartmentExtendedAttributeDetailedController.groovy

    r288 r403  
    6262                if(departmentExtendedAttributeInstance.version > version) {
    6363                   
    64                     departmentExtendedAttributeInstance.errors.rejectValue("version", "departmentExtendedAttribute.optimistic.locking.failure", "Another user has updated this DepartmentExtendedAttribute while you were editing.")
     64                    departmentExtendedAttributeInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6565                    render(view:'edit',model:[departmentExtendedAttributeInstance:departmentExtendedAttributeInstance])
    6666                    return
  • trunk/grails-app/controllers/EntryController.groovy

    r178 r403  
    6161                if(entryInstance.version > version) {
    6262                   
    63                     entryInstance.errors.rejectValue("version", "entry.optimistic.locking.failure", "Another user has updated this Entry while you were editing.")
     63                    entryInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[entryInstance:entryInstance])
    6565                    return
  • trunk/grails-app/controllers/EntryTypeController.groovy

    r178 r403  
    6161                if(entryTypeInstance.version > version) {
    6262                   
    63                     entryTypeInstance.errors.rejectValue("version", "entryType.optimistic.locking.failure", "Another user has updated this EntryType while you were editing.")
     63                    entryTypeInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[entryTypeInstance:entryTypeInstance])
    6565                    return
  • trunk/grails-app/controllers/ExtendedAttributeTypeDetailedController.groovy

    r386 r403  
    7272                if(extendedAttributeTypeInstance.version > version) {
    7373                   
    74                     extendedAttributeTypeInstance.errors.rejectValue("version", "extendedAttributeType.optimistic.locking.failure", "Another user has updated this ExtendedAttributeType while you were editing.")
     74                    extendedAttributeTypeInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    7575                    render(view:'edit',model:[extendedAttributeTypeInstance:extendedAttributeTypeInstance])
    7676                    return
  • trunk/grails-app/controllers/InventoryGroupDetailedController.groovy

    r380 r403  
    7575                if(inventoryGroupInstance.version > version) {
    7676                   
    77                     inventoryGroupInstance.errors.rejectValue("version", "inventoryGroup.optimistic.locking.failure", "Another user has updated this InventoryGroup while you were editing.")
     77                    inventoryGroupInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    7878                    render(view:'edit',model:[inventoryGroupInstance:inventoryGroupInstance])
    7979                    return
  • trunk/grails-app/controllers/InventoryItemDetailedController.groovy

    r392 r403  
    198198                if(inventoryItemInstance.version > version) {
    199199                   
    200                     inventoryItemInstance.errors.rejectValue("version", "inventoryItem.optimistic.locking.failure", "Another user has updated this InventoryItem while you were editing.")
     200                    inventoryItemInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    201201                    render(view:'edit',model:[inventoryItemInstance:inventoryItemInstance])
    202202                    return
  • trunk/grails-app/controllers/InventoryLocationDetailedController.groovy

    r377 r403  
    7575                if(inventoryLocationInstance.version > version) {
    7676                   
    77                     inventoryLocationInstance.errors.rejectValue("version", "inventoryLocation.optimistic.locking.failure", "Another user has updated this InventoryLocation while you were editing.")
     77                    inventoryLocationInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    7878                    render(view:'edit',model:[inventoryLocationInstance:inventoryLocationInstance])
    7979                    return
  • trunk/grails-app/controllers/InventoryMovementController.groovy

    r178 r403  
    6161                if(inventoryMovementInstance.version > version) {
    6262                   
    63                     inventoryMovementInstance.errors.rejectValue("version", "inventoryMovement.optimistic.locking.failure", "Another user has updated this InventoryMovement while you were editing.")
     63                    inventoryMovementInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[inventoryMovementInstance:inventoryMovementInstance])
    6565                    return
  • trunk/grails-app/controllers/InventoryMovementTypeController.groovy

    r178 r403  
    6161                if(inventoryMovementTypeInstance.version > version) {
    6262                   
    63                     inventoryMovementTypeInstance.errors.rejectValue("version", "inventoryMovementType.optimistic.locking.failure", "Another user has updated this InventoryMovementType while you were editing.")
     63                    inventoryMovementTypeInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[inventoryMovementTypeInstance:inventoryMovementTypeInstance])
    6565                    return
  • trunk/grails-app/controllers/InventoryStoreDetailedController.groovy

    r377 r403  
    7474                if(inventoryStoreInstance.version > version) {
    7575                   
    76                     inventoryStoreInstance.errors.rejectValue("version", "inventoryStore.optimistic.locking.failure", "Another user has updated this InventoryStore while you were editing.")
     76                    inventoryStoreInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    7777                    render(view:'edit',model:[inventoryStoreInstance:inventoryStoreInstance])
    7878                    return
  • trunk/grails-app/controllers/InventoryTypeController.groovy

    r178 r403  
    6161                if(inventoryTypeInstance.version > version) {
    6262                   
    63                     inventoryTypeInstance.errors.rejectValue("version", "inventoryType.optimistic.locking.failure", "Another user has updated this InventoryType while you were editing.")
     63                    inventoryTypeInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[inventoryTypeInstance:inventoryTypeInstance])
    6565                    return
  • trunk/grails-app/controllers/LifePlanController.groovy

    r178 r403  
    6161                if(lifePlanInstance.version > version) {
    6262                   
    63                     lifePlanInstance.errors.rejectValue("version", "lifePlan.optimistic.locking.failure", "Another user has updated this LifePlan while you were editing.")
     63                    lifePlanInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[lifePlanInstance:lifePlanInstance])
    6565                    return
  • trunk/grails-app/controllers/MaintenanceActionDetailedController.groovy

    r298 r403  
    6565                if(maintenanceActionInstance.version > version) {
    6666                   
    67                     maintenanceActionInstance.errors.rejectValue("version", "maintenanceAction.optimistic.locking.failure", "Another user has updated this MaintenanceAction while you were editing.")
     67                    maintenanceActionInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6868                    render(view:'edit',model:[maintenanceActionInstance:maintenanceActionInstance])
    6969                    return
  • trunk/grails-app/controllers/MaintenancePolicyDetailedController.groovy

    r378 r403  
    7575                if(maintenancePolicyInstance.version > version) {
    7676                   
    77                     maintenancePolicyInstance.errors.rejectValue("version", "maintenancePolicy.optimistic.locking.failure", "Another user has updated this MaintenancePolicy while you were editing.")
     77                    maintenancePolicyInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    7878                    render(view:'edit',model:[maintenancePolicyInstance:maintenancePolicyInstance])
    7979                    return
  • trunk/grails-app/controllers/ManufacturerDetailedController.groovy

    r375 r403  
    7272                if(manufacturerInstance.version > version) {
    7373                   
    74                     manufacturerInstance.errors.rejectValue("version", "manufacturer.optimistic.locking.failure", "Another user has updated this Manufacturer while you were editing.")
     74                    manufacturerInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    7575                    render(view:'edit',model:[manufacturerInstance:manufacturerInstance])
    7676                    return
  • trunk/grails-app/controllers/ManufacturerTypeDetailedController.groovy

    r383 r403  
    7575                if(manufacturerTypeInstance.version > version) {
    7676                   
    77                     manufacturerTypeInstance.errors.rejectValue("version", "manufacturerType.optimistic.locking.failure", "Another user has updated this ManufacturerType while you were editing.")
     77                    manufacturerTypeInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    7878                    render(view:'edit',model:[manufacturerTypeInstance:manufacturerTypeInstance])
    7979                    return
  • trunk/grails-app/controllers/PeriodController.groovy

    r178 r403  
    6161                if(periodInstance.version > version) {
    6262                   
    63                     periodInstance.errors.rejectValue("version", "period.optimistic.locking.failure", "Another user has updated this Period while you were editing.")
     63                    periodInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[periodInstance:periodInstance])
    6565                    return
  • trunk/grails-app/controllers/PersonController.groovy

    r375 r403  
    113113            long version = params.version.toLong()
    114114            if (person.version > version) {
    115                 person.errors.rejectValue 'version', "person.optimistic.locking.failure",
    116                     "Another user has updated this Person while you were editing."
     115                person.errors.rejectValue 'version', "default.optimistic.locking.failure"
    117116                render view: 'edit', model: buildPersonModel(person)
    118117                return
  • trunk/grails-app/controllers/PersonGroupController.groovy

    r178 r403  
    6161                if(personGroupInstance.version > version) {
    6262                   
    63                     personGroupInstance.errors.rejectValue("version", "personGroup.optimistic.locking.failure", "Another user has updated this PersonGroup while you were editing.")
     63                    personGroupInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[personGroupInstance:personGroupInstance])
    6565                    return
  • trunk/grails-app/controllers/PersonGroupTypeController.groovy

    r178 r403  
    6161                if(personGroupTypeInstance.version > version) {
    6262                   
    63                     personGroupTypeInstance.errors.rejectValue("version", "personGroupType.optimistic.locking.failure", "Another user has updated this PersonGroupType while you were editing.")
     63                    personGroupTypeInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[personGroupTypeInstance:personGroupTypeInstance])
    6565                    return
  • trunk/grails-app/controllers/PictureDetailedController.groovy

    r375 r403  
    9090                def version = params.version.toLong()
    9191                if(picture.version > version) {
    92                     picture.errors.rejectValue("version", "picture.optimistic.locking.failure", "Another user has updated this Picture while you were editing.")
     92                    picture.errors.rejectValue("version", "default.optimistic.locking.failure")
    9393                    render(view:'edit',model:[picture:picture])
    9494                    return
  • trunk/grails-app/controllers/SectionDetailedController.groovy

    r385 r403  
    7878                if(sectionInstance.version > version) {
    7979                   
    80                     sectionInstance.errors.rejectValue("version", "section.optimistic.locking.failure", "Another user has updated this Section while you were editing.")
     80                    sectionInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    8181                    render(view:'edit',model:[sectionInstance:sectionInstance])
    8282                    return
  • trunk/grails-app/controllers/SectionExtendedAttributeDetailedController.groovy

    r298 r403  
    6262                if(sectionExtendedAttributeInstance.version > version) {
    6363                   
    64                     sectionExtendedAttributeInstance.errors.rejectValue("version", "sectionExtendedAttribute.optimistic.locking.failure", "Another user has updated this SectionExtendedAttribute while you were editing.")
     64                    sectionExtendedAttributeInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6565                    render(view:'edit',model:[sectionExtendedAttributeInstance:sectionExtendedAttributeInstance])
    6666                    return
  • trunk/grails-app/controllers/SiteDetailedController.groovy

    r385 r403  
    7878                if(siteInstance.version > version) {
    7979                   
    80                     siteInstance.errors.rejectValue("version", "site.optimistic.locking.failure", "Another user has updated this Site while you were editing.")
     80                    siteInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    8181                    render(view:'edit',model:[siteInstance:siteInstance])
    8282                    return
  • trunk/grails-app/controllers/SiteExtendedAttributeDetailedController.groovy

    r298 r403  
    6262                if(siteExtendedAttributeInstance.version > version) {
    6363                   
    64                     siteExtendedAttributeInstance.errors.rejectValue("version", "siteExtendedAttribute.optimistic.locking.failure", "Another user has updated this SiteExtendedAttribute while you were editing.")
     64                    siteExtendedAttributeInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6565                    render(view:'edit',model:[siteExtendedAttributeInstance:siteExtendedAttributeInstance])
    6666                    return
  • trunk/grails-app/controllers/SupplierDetailedController.groovy

    r375 r403  
    7272                if(supplierInstance.version > version) {
    7373                   
    74                     supplierInstance.errors.rejectValue("version", "supplier.optimistic.locking.failure", "Another user has updated this Supplier while you were editing.")
     74                    supplierInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    7575                    render(view:'edit',model:[supplierInstance:supplierInstance])
    7676                    return
  • trunk/grails-app/controllers/SupplierTypeDetailedController.groovy

    r383 r403  
    7575                if(supplierTypeInstance.version > version) {
    7676                   
    77                     supplierTypeInstance.errors.rejectValue("version", "supplierType.optimistic.locking.failure", "Another user has updated this SupplierType while you were editing.")
     77                    supplierTypeInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    7878                    render(view:'edit',model:[supplierTypeInstance:supplierTypeInstance])
    7979                    return
  • trunk/grails-app/controllers/TaskBudgetStatusController.groovy

    r252 r403  
    6161                if(taskBudgetStatusInstance.version > version) {
    6262                   
    63                     taskBudgetStatusInstance.errors.rejectValue("version", "taskBudgetStatus.optimistic.locking.failure", "Another user has updated this TaskBudgetStatus while you were editing.")
     63                    taskBudgetStatusInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[taskBudgetStatusInstance:taskBudgetStatusInstance])
    6565                    return
  • trunk/grails-app/controllers/TaskController.groovy

    r178 r403  
    6161                if(taskInstance.version > version) {
    6262                   
    63                     taskInstance.errors.rejectValue("version", "task.optimistic.locking.failure", "Another user has updated this Task while you were editing.")
     63                    taskInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[taskInstance:taskInstance])
    6565                    return
  • trunk/grails-app/controllers/TaskGroupController.groovy

    r178 r403  
    6161                if(taskGroupInstance.version > version) {
    6262                   
    63                     taskGroupInstance.errors.rejectValue("version", "taskGroup.optimistic.locking.failure", "Another user has updated this TaskGroup while you were editing.")
     63                    taskGroupInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[taskGroupInstance:taskGroupInstance])
    6565                    return
  • trunk/grails-app/controllers/TaskModificationController.groovy

    r178 r403  
    6161                if(taskModificationInstance.version > version) {
    6262                   
    63                     taskModificationInstance.errors.rejectValue("version", "taskModification.optimistic.locking.failure", "Another user has updated this TaskModification while you were editing.")
     63                    taskModificationInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[taskModificationInstance:taskModificationInstance])
    6565                    return
  • trunk/grails-app/controllers/TaskModificationTypeController.groovy

    r178 r403  
    6161                if(taskModificationTypeInstance.version > version) {
    6262                   
    63                     taskModificationTypeInstance.errors.rejectValue("version", "taskModificationType.optimistic.locking.failure", "Another user has updated this TaskModificationType while you were editing.")
     63                    taskModificationTypeInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[taskModificationTypeInstance:taskModificationTypeInstance])
    6565                    return
  • trunk/grails-app/controllers/TaskPriorityController.groovy

    r178 r403  
    6161                if(taskPriorityInstance.version > version) {
    6262                   
    63                     taskPriorityInstance.errors.rejectValue("version", "taskPriority.optimistic.locking.failure", "Another user has updated this TaskPriority while you were editing.")
     63                    taskPriorityInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[taskPriorityInstance:taskPriorityInstance])
    6565                    return
  • trunk/grails-app/controllers/TaskProcedureController.groovy

    r178 r403  
    6161                if(taskProcedureInstance.version > version) {
    6262                   
    63                     taskProcedureInstance.errors.rejectValue("version", "taskProcedure.optimistic.locking.failure", "Another user has updated this TaskProcedure while you were editing.")
     63                    taskProcedureInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[taskProcedureInstance:taskProcedureInstance])
    6565                    return
  • trunk/grails-app/controllers/TaskProcedureDetailedController.groovy

    r375 r403  
    8989                if(taskProcedureInstance.version > version) {
    9090
    91                     taskProcedureInstance.errors.rejectValue("version", "taskProcedure.optimistic.locking.failure", "Another user has updated this TaskProcedure while you were editing.")
     91                    taskProcedureInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    9292                    render(view:'edit',model:[taskProcedureInstance:taskProcedureInstance])
    9393                    return
  • trunk/grails-app/controllers/TaskRecurringScheduleController.groovy

    r178 r403  
    6161                if(taskRecurringScheduleInstance.version > version) {
    6262                   
    63                     taskRecurringScheduleInstance.errors.rejectValue("version", "taskRecurringSchedule.optimistic.locking.failure", "Another user has updated this TaskRecurringSchedule while you were editing.")
     63                    taskRecurringScheduleInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[taskRecurringScheduleInstance:taskRecurringScheduleInstance])
    6565                    return
  • trunk/grails-app/controllers/TaskStatusController.groovy

    r178 r403  
    6161                if(taskStatusInstance.version > version) {
    6262                   
    63                     taskStatusInstance.errors.rejectValue("version", "taskStatus.optimistic.locking.failure", "Another user has updated this TaskStatus while you were editing.")
     63                    taskStatusInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[taskStatusInstance:taskStatusInstance])
    6565                    return
  • trunk/grails-app/controllers/TaskTypeController.groovy

    r178 r403  
    6161                if(taskTypeInstance.version > version) {
    6262                   
    63                     taskTypeInstance.errors.rejectValue("version", "taskType.optimistic.locking.failure", "Another user has updated this TaskType while you were editing.")
     63                    taskTypeInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[taskTypeInstance:taskTypeInstance])
    6565                    return
  • trunk/grails-app/controllers/UnitOfMeasureController.groovy

    r178 r403  
    6161                if(unitOfMeasureInstance.version > version) {
    6262                   
    63                     unitOfMeasureInstance.errors.rejectValue("version", "unitOfMeasure.optimistic.locking.failure", "Another user has updated this UnitOfMeasure while you were editing.")
     63                    unitOfMeasureInstance.errors.rejectValue("version", "default.optimistic.locking.failure")
    6464                    render(view:'edit',model:[unitOfMeasureInstance:unitOfMeasureInstance])
    6565                    return
Note: See TracChangeset for help on using the changeset viewer.