Ignore:
Timestamp:
Apr 29, 2010, 5:01:51 AM (9 years ago)
Author:
gav
Message:

Added integration test for TaskSearchService.getPersonsTasks().
Extended TaskService.delete() to handle assignedPersons and assignedGroups.
Use safe collection navigation in AssignedGroupService and AssignedPersonService?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/AssignedPersonService.groovy

    r291 r514  
    146146                return fail(code:"person.not.found")
    147147
    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) }
    149149
    150150            result.assignedPersonInstance = new AssignedPerson()
Note: See TracChangeset for help on using the changeset viewer.