Changeset 403
- Timestamp:
- Feb 23, 2010, 2:28:24 PM (15 years ago)
- Location:
- trunk/grails-app/controllers
- Files:
-
- 49 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AddressDetailedController.groovy
r397 r403 66 66 def version = params.version.toLong() 67 67 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") 70 70 render(view:'edit',model:[addressInstance:addressInstance]) 71 71 return -
trunk/grails-app/controllers/AppConfigController.groovy
r234 r403 61 61 if(appConfigInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[appConfigInstance:appConfigInstance]) 65 65 return -
trunk/grails-app/controllers/AssetDetailedController.groovy
r390 r403 281 281 if(assetInstance.version > version) { 282 282 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") 284 284 render(view:'edit',model:[assetInstance:assetInstance, possibleAssetSubItems: assetService.possibleAssetSubItems()]) 285 285 return -
trunk/grails-app/controllers/AssetExtendedAttributeDetailedController.groovy
r298 r403 57 57 if(assetExtendedAttributeInstance.version > version) { 58 58 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") 60 60 render(view:'edit',model:[assetExtendedAttributeInstance:assetExtendedAttributeInstance]) 61 61 return -
trunk/grails-app/controllers/AssetSubItemDetailedController.groovy
r387 r403 158 158 if(assetSubItemInstance.version > version) { 159 159 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") 161 161 render(view:'edit',model:[assetSubItemInstance:assetSubItemInstance]) 162 162 return -
trunk/grails-app/controllers/AssetSubItemExtendedAttributeDetailedController.groovy
r298 r403 57 57 if(assetSubItemExtendedAttributeInstance.version > version) { 58 58 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") 60 60 render(view:'edit',model:[assetSubItemExtendedAttributeInstance:assetSubItemExtendedAttributeInstance]) 61 61 return -
trunk/grails-app/controllers/AssignedGroupController.groovy
r242 r403 61 61 if(assignedGroupInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[assignedGroupInstance:assignedGroupInstance]) 65 65 return -
trunk/grails-app/controllers/AssignedPersonController.groovy
r241 r403 61 61 if(assignedPersonInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[assignedPersonInstance:assignedPersonInstance]) 65 65 return -
trunk/grails-app/controllers/AuthorityController.groovy
r178 r403 81 81 long version = params.version.toLong() 82 82 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" 85 84 render view: 'edit', model: [authority: authority] 86 85 return -
trunk/grails-app/controllers/DepartmentDetailedController.groovy
r288 r403 62 62 if(departmentInstance.version > version) { 63 63 64 departmentInstance.errors.rejectValue("version", "de partment.optimistic.locking.failure", "Another user has updated this Department while you were editing.")64 departmentInstance.errors.rejectValue("version", "default.optimistic.locking.failure") 65 65 render(view:'edit',model:[departmentInstance:departmentInstance]) 66 66 return -
trunk/grails-app/controllers/DepartmentExtendedAttributeDetailedController.groovy
r288 r403 62 62 if(departmentExtendedAttributeInstance.version > version) { 63 63 64 departmentExtendedAttributeInstance.errors.rejectValue("version", "de partmentExtendedAttribute.optimistic.locking.failure", "Another user has updated this DepartmentExtendedAttribute while you were editing.")64 departmentExtendedAttributeInstance.errors.rejectValue("version", "default.optimistic.locking.failure") 65 65 render(view:'edit',model:[departmentExtendedAttributeInstance:departmentExtendedAttributeInstance]) 66 66 return -
trunk/grails-app/controllers/EntryController.groovy
r178 r403 61 61 if(entryInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[entryInstance:entryInstance]) 65 65 return -
trunk/grails-app/controllers/EntryTypeController.groovy
r178 r403 61 61 if(entryTypeInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[entryTypeInstance:entryTypeInstance]) 65 65 return -
trunk/grails-app/controllers/ExtendedAttributeTypeDetailedController.groovy
r386 r403 72 72 if(extendedAttributeTypeInstance.version > version) { 73 73 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") 75 75 render(view:'edit',model:[extendedAttributeTypeInstance:extendedAttributeTypeInstance]) 76 76 return -
trunk/grails-app/controllers/InventoryGroupDetailedController.groovy
r380 r403 75 75 if(inventoryGroupInstance.version > version) { 76 76 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") 78 78 render(view:'edit',model:[inventoryGroupInstance:inventoryGroupInstance]) 79 79 return -
trunk/grails-app/controllers/InventoryItemDetailedController.groovy
r392 r403 198 198 if(inventoryItemInstance.version > version) { 199 199 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") 201 201 render(view:'edit',model:[inventoryItemInstance:inventoryItemInstance]) 202 202 return -
trunk/grails-app/controllers/InventoryLocationDetailedController.groovy
r377 r403 75 75 if(inventoryLocationInstance.version > version) { 76 76 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") 78 78 render(view:'edit',model:[inventoryLocationInstance:inventoryLocationInstance]) 79 79 return -
trunk/grails-app/controllers/InventoryMovementController.groovy
r178 r403 61 61 if(inventoryMovementInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[inventoryMovementInstance:inventoryMovementInstance]) 65 65 return -
trunk/grails-app/controllers/InventoryMovementTypeController.groovy
r178 r403 61 61 if(inventoryMovementTypeInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[inventoryMovementTypeInstance:inventoryMovementTypeInstance]) 65 65 return -
trunk/grails-app/controllers/InventoryStoreDetailedController.groovy
r377 r403 74 74 if(inventoryStoreInstance.version > version) { 75 75 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") 77 77 render(view:'edit',model:[inventoryStoreInstance:inventoryStoreInstance]) 78 78 return -
trunk/grails-app/controllers/InventoryTypeController.groovy
r178 r403 61 61 if(inventoryTypeInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[inventoryTypeInstance:inventoryTypeInstance]) 65 65 return -
trunk/grails-app/controllers/LifePlanController.groovy
r178 r403 61 61 if(lifePlanInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[lifePlanInstance:lifePlanInstance]) 65 65 return -
trunk/grails-app/controllers/MaintenanceActionDetailedController.groovy
r298 r403 65 65 if(maintenanceActionInstance.version > version) { 66 66 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") 68 68 render(view:'edit',model:[maintenanceActionInstance:maintenanceActionInstance]) 69 69 return -
trunk/grails-app/controllers/MaintenancePolicyDetailedController.groovy
r378 r403 75 75 if(maintenancePolicyInstance.version > version) { 76 76 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") 78 78 render(view:'edit',model:[maintenancePolicyInstance:maintenancePolicyInstance]) 79 79 return -
trunk/grails-app/controllers/ManufacturerDetailedController.groovy
r375 r403 72 72 if(manufacturerInstance.version > version) { 73 73 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") 75 75 render(view:'edit',model:[manufacturerInstance:manufacturerInstance]) 76 76 return -
trunk/grails-app/controllers/ManufacturerTypeDetailedController.groovy
r383 r403 75 75 if(manufacturerTypeInstance.version > version) { 76 76 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") 78 78 render(view:'edit',model:[manufacturerTypeInstance:manufacturerTypeInstance]) 79 79 return -
trunk/grails-app/controllers/PeriodController.groovy
r178 r403 61 61 if(periodInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[periodInstance:periodInstance]) 65 65 return -
trunk/grails-app/controllers/PersonController.groovy
r375 r403 113 113 long version = params.version.toLong() 114 114 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" 117 116 render view: 'edit', model: buildPersonModel(person) 118 117 return -
trunk/grails-app/controllers/PersonGroupController.groovy
r178 r403 61 61 if(personGroupInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[personGroupInstance:personGroupInstance]) 65 65 return -
trunk/grails-app/controllers/PersonGroupTypeController.groovy
r178 r403 61 61 if(personGroupTypeInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[personGroupTypeInstance:personGroupTypeInstance]) 65 65 return -
trunk/grails-app/controllers/PictureDetailedController.groovy
r375 r403 90 90 def version = params.version.toLong() 91 91 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") 93 93 render(view:'edit',model:[picture:picture]) 94 94 return -
trunk/grails-app/controllers/SectionDetailedController.groovy
r385 r403 78 78 if(sectionInstance.version > version) { 79 79 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") 81 81 render(view:'edit',model:[sectionInstance:sectionInstance]) 82 82 return -
trunk/grails-app/controllers/SectionExtendedAttributeDetailedController.groovy
r298 r403 62 62 if(sectionExtendedAttributeInstance.version > version) { 63 63 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") 65 65 render(view:'edit',model:[sectionExtendedAttributeInstance:sectionExtendedAttributeInstance]) 66 66 return -
trunk/grails-app/controllers/SiteDetailedController.groovy
r385 r403 78 78 if(siteInstance.version > version) { 79 79 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") 81 81 render(view:'edit',model:[siteInstance:siteInstance]) 82 82 return -
trunk/grails-app/controllers/SiteExtendedAttributeDetailedController.groovy
r298 r403 62 62 if(siteExtendedAttributeInstance.version > version) { 63 63 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") 65 65 render(view:'edit',model:[siteExtendedAttributeInstance:siteExtendedAttributeInstance]) 66 66 return -
trunk/grails-app/controllers/SupplierDetailedController.groovy
r375 r403 72 72 if(supplierInstance.version > version) { 73 73 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") 75 75 render(view:'edit',model:[supplierInstance:supplierInstance]) 76 76 return -
trunk/grails-app/controllers/SupplierTypeDetailedController.groovy
r383 r403 75 75 if(supplierTypeInstance.version > version) { 76 76 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") 78 78 render(view:'edit',model:[supplierTypeInstance:supplierTypeInstance]) 79 79 return -
trunk/grails-app/controllers/TaskBudgetStatusController.groovy
r252 r403 61 61 if(taskBudgetStatusInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[taskBudgetStatusInstance:taskBudgetStatusInstance]) 65 65 return -
trunk/grails-app/controllers/TaskController.groovy
r178 r403 61 61 if(taskInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[taskInstance:taskInstance]) 65 65 return -
trunk/grails-app/controllers/TaskGroupController.groovy
r178 r403 61 61 if(taskGroupInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[taskGroupInstance:taskGroupInstance]) 65 65 return -
trunk/grails-app/controllers/TaskModificationController.groovy
r178 r403 61 61 if(taskModificationInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[taskModificationInstance:taskModificationInstance]) 65 65 return -
trunk/grails-app/controllers/TaskModificationTypeController.groovy
r178 r403 61 61 if(taskModificationTypeInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[taskModificationTypeInstance:taskModificationTypeInstance]) 65 65 return -
trunk/grails-app/controllers/TaskPriorityController.groovy
r178 r403 61 61 if(taskPriorityInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[taskPriorityInstance:taskPriorityInstance]) 65 65 return -
trunk/grails-app/controllers/TaskProcedureController.groovy
r178 r403 61 61 if(taskProcedureInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[taskProcedureInstance:taskProcedureInstance]) 65 65 return -
trunk/grails-app/controllers/TaskProcedureDetailedController.groovy
r375 r403 89 89 if(taskProcedureInstance.version > version) { 90 90 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") 92 92 render(view:'edit',model:[taskProcedureInstance:taskProcedureInstance]) 93 93 return -
trunk/grails-app/controllers/TaskRecurringScheduleController.groovy
r178 r403 61 61 if(taskRecurringScheduleInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[taskRecurringScheduleInstance:taskRecurringScheduleInstance]) 65 65 return -
trunk/grails-app/controllers/TaskStatusController.groovy
r178 r403 61 61 if(taskStatusInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[taskStatusInstance:taskStatusInstance]) 65 65 return -
trunk/grails-app/controllers/TaskTypeController.groovy
r178 r403 61 61 if(taskTypeInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[taskTypeInstance:taskTypeInstance]) 65 65 return -
trunk/grails-app/controllers/UnitOfMeasureController.groovy
r178 r403 61 61 if(unitOfMeasureInstance.version > version) { 62 62 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") 64 64 render(view:'edit',model:[unitOfMeasureInstance:unitOfMeasureInstance]) 65 65 return
Note: See TracChangeset
for help on using the changeset viewer.