Changeset 253
- Timestamp:
- Dec 30, 2009, 4:09:24 AM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/TaskDetailedController.groovy
r246 r253 200 200 def taskModificationList = TaskModification.findAllByTask(taskInstance, [max:100, sort:"id", order:"asc", offset:0]) 201 201 202 def assignedGroupList = taskInstance.assignedGroups.sort { p1, p2 -> p1.personGroup.name.compareToIgnoreCase(p2.personGroup.name) } 203 def assignedPersonList = taskInstance.assignedPersons.sort { p1, p2 -> p1.person.firstName.compareToIgnoreCase(p2.person.firstName) } 204 202 205 def taskProcedureInstance = TaskProcedure.get(taskInstance.taskProcedure?.id) 203 206 def taskProcedureExits = new Boolean("true") … … 229 232 taskRecurringScheduleExits: taskRecurringScheduleExits, 230 233 inventoryMovementList: inventoryMovementList, 231 taskModificationList: taskModificationList] 234 taskModificationList: taskModificationList, 235 assignedGroupList: assignedGroupList, 236 assignedPersonList: assignedPersonList] 232 237 } 233 238 } -
trunk/grails-app/views/taskDetailed/show.gsp
r252 r253 195 195 <td valign="top" style="text-align:left;" class="value"> 196 196 <ul> 197 <g:each var="a" in="${ taskInstance.assignedGroups}">197 <g:each var="a" in="${assignedGroupList}"> 198 198 <li><g:link controller="assignedGroupDetailed" action="edit" id="${a.id}" params="['task.id':taskInstance.id]">${a?.encodeAsHTML()}</g:link></li> 199 199 </g:each> … … 210 210 <td valign="top" style="text-align:left;" class="value"> 211 211 <ul> 212 <g:each var="a" in="${ taskInstance.assignedPersons}">212 <g:each var="a" in="${assignedPersonList}"> 213 213 <li><g:link controller="assignedPersonDetailed" action="edit" id="${a.id}" params="['task.id':taskInstance.id]">${a?.encodeAsHTML()}</g:link></li> 214 214 </g:each>
Note: See TracChangeset
for help on using the changeset viewer.