Changeset 787 for branches/features
- Timestamp:
- Feb 5, 2011, 9:25:06 PM (14 years ago)
- Location:
- branches/features/taskProcedureRework/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/features/taskProcedureRework/grails-app/services/AssetService.groovy
r776 r787 30 30 * @returns A list of the assemblies. 31 31 */ 32 def getAssemblies( Assetasset) {32 def getAssemblies(asset) { 33 33 def assemblies = [] 34 if(!(asset instanceof Asset)) 35 return assemblies 34 36 // Database efficiency: 35 37 // The asset is configured to batch fetch assetSubItems which -
branches/features/taskProcedureRework/grails-app/views/shared/_assetTreeCompact.gsp
r780 r787 1 2 <%-- Fetch to prevent lazy initialization error. --%> 3 <% assetInstance = Asset.read(assetInstance?.id)%> 1 4 2 5 <div class="static_tree" > 3 ${assetInstance .encodeAsHTML()}6 ${assetInstance?.encodeAsHTML()} 4 7 <ul> 5 <g:each var="assetSubItem1" in="${assetInstance .assetSubItems.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }">8 <g:each var="assetSubItem1" in="${assetInstance?.assetSubItems?.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"> 6 9 <li> 7 10 ${assetSubItem1?.encodeAsHTML()}
Note: See TracChangeset
for help on using the changeset viewer.