Changeset 256 for trunk/grails-app
- Timestamp:
- Jan 4, 2010, 8:16:51 AM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/AssignedGroupService.groovy
r254 r256 53 53 54 54 result.personGroup = result.assignedGroupInstance.personGroup 55 result.personsInGroup = result.personGroup.persons 55 result.personsInGroup = result.personGroup.persons.sort { p1, p2 -> p1.firstName.compareToIgnoreCase(p2.firstName) } 56 56 57 57 // Success. … … 77 77 return fail(code:"personGroup.not.found") 78 78 79 result.personsInGroup = result.personGroup.persons 79 result.personsInGroup = result.personGroup.persons.sort { p1, p2 -> p1.firstName.compareToIgnoreCase(p2.firstName) } 80 80 81 81 result.assignedGroupInstance = AssignedGroup.get(params.id) … … 121 121 result.assignedGroupInstance.properties = params 122 122 123 result.personGroup = PersonGroup.list().sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }[0] // Get the first result.124 result.personsInGroup = result.personGroup.persons 123 result.personGroup = PersonGroup.list().sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }[0] // Get the first result. 124 result.personsInGroup = result.personGroup.persons.sort { p1, p2 -> p1.firstName.compareToIgnoreCase(p2.firstName) } 125 125 126 // success126 // Success. 127 127 return result 128 128 } … … 146 146 return fail(code:"personGroup.not.found") 147 147 148 result.personsInGroup = result.personGroup.persons 148 result.personsInGroup = result.personGroup.persons.sort { p1, p2 -> p1.firstName.compareToIgnoreCase(p2.firstName) } 149 149 150 150 result.assignedGroupInstance = new AssignedGroup() … … 183 183 return fail(code:"default.not.found") 184 184 185 result.personsInGroup = result.personGroup.persons 185 result.personsInGroup = result.personGroup.persons.sort { p1, p2 -> p1.firstName.compareToIgnoreCase(p2.firstName) } 186 186 187 187 // Success. -
trunk/grails-app/views/assignedGroupDetailed/create.gsp
r254 r256 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create Assigned Group</title> 8 <g:javascript src="overlayPane.js" /> 7 <title>Create AssignedGroup</title> 9 8 </head> 10 9 <body>
Note: See TracChangeset
for help on using the changeset viewer.