Changeset 514 for trunk/grails-app
- Timestamp:
- Apr 29, 2010, 5:01:51 AM (15 years ago)
- Location:
- trunk/grails-app/services
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/AssignedGroupService.groovy
r291 r514 146 146 return fail(code:"personGroup.not.found") 147 147 148 result.personsInGroup = result.personGroup.persons .sort { p1, p2 -> p1.firstName.compareToIgnoreCase(p2.firstName) }148 result.personsInGroup = result.personGroup.persons?.sort { p1, p2 -> p1.firstName.compareToIgnoreCase(p2.firstName) } 149 149 150 150 result.assignedGroupInstance = new AssignedGroup() -
trunk/grails-app/services/AssignedPersonService.groovy
r291 r514 146 146 return fail(code:"person.not.found") 147 147 148 result.groupsForPerson = result.person.personGroups .sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }148 result.groupsForPerson = result.person.personGroups?.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } 149 149 150 150 result.assignedPersonInstance = new AssignedPerson() -
trunk/grails-app/services/TaskService.groovy
r510 r514 254 254 } 255 255 256 // Handle assignedPersons. 257 def taskAssignedPersons = AssignedPerson.findAllByTask(result.taskInstance) 258 taskAssignedPersons.each() { 259 result.taskInstance.removeFromAssignedPersons(it) 260 it.delete() 261 } 262 263 // Handle assignedGroups. 264 def taskAssignedGroups = AssignedGroup.findAllByTask(result.taskInstance) 265 taskAssignedGroups.each() { 266 result.taskInstance.removeFromAssignedGroups(it) 267 it.delete() 268 } 269 256 270 if(result.error) 257 271 return result
Note: See TracChangeset
for help on using the changeset viewer.