Changeset 869 for trunk


Ignore:
Timestamp:
03/16/11 07:40:06 (8 years ago)
Author:
gav
Message:

Update listSubTasks view to use list template, part 2.

Location:
trunk/grails-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/TaskDetailedController.groovy

    r840 r869  
    757757        else { 
    758758        params.max = Math.min( params.max ? params.max.toInteger() : 200,  200) 
     759        def filterParams = [:] 
    759760        def subTaskInstanceList = Task.findAllByParentTaskAndTrash(parentTaskInstance, false, params) 
    760761        def subTaskInstanceTotal = Task.countByParentTaskAndTrash(parentTaskInstance, false) 
     
    762763        [ taskInstanceList: subTaskInstanceList, 
    763764            taskInstanceTotal:  subTaskInstanceTotal, 
    764             parentTaskInstance: parentTaskInstance] 
     765            parentTaskInstance: parentTaskInstance, 
     766            filterParams: filterParams] 
    765767        } 
    766768    } 
  • trunk/grails-app/views/taskDetailed/listSubTasks.gsp

    r867 r869  
    1717                </g:link> 
    1818            </h1> 
     19            <g:if test="${parentTaskInstance.primaryAsset}"> 
     20                ${fieldValue(bean:parentTaskInstance, field:'primaryAsset')}: 
     21            </g:if> 
    1922            ${parentTaskInstance.description} 
    2023 
Note: See TracChangeset for help on using the changeset viewer.