avoid loading of all subchildren in check for nested listing
This commit is contained in:
		
							parent
							
								
									4a18c42283
								
							
						
					
					
						commit
						0b5c50c100
					
				
					 1 changed files with 11 additions and 8 deletions
				
			
		|  | @ -183,14 +183,17 @@ | ||||||
|                          tal:attributes="value related/uidToken" /> |                          tal:attributes="value related/uidToken" /> | ||||||
|                 </td> |                 </td> | ||||||
|               </tr> |               </tr> | ||||||
|               <tr tal:define="children python:list(related.unique(related.children())); |               <tal:nested condition="list_nested"> | ||||||
|  |                 <tr tal:define="children python: | ||||||
|  |                         list(related.unique(related.children())); | ||||||
|                                 resources python:list(related.resources())" |                                 resources python:list(related.resources())" | ||||||
|                   tal:condition="python:list_nested and (children or resources)"> |                     tal:condition="python:children or resources"> | ||||||
|                   <td tal:condition="item/showCheckboxes|nothing" /> |                   <td tal:condition="item/showCheckboxes|nothing" /> | ||||||
|                   <td colspan="5"> |                   <td colspan="5"> | ||||||
|                     <metal:list use-macro="item/template/macros/list_nested" /> |                     <metal:list use-macro="item/template/macros/list_nested" /> | ||||||
|                   </td> |                   </td> | ||||||
|                 </tr> |                 </tr> | ||||||
|  |               </tal:nested> | ||||||
|             </tal:item> |             </tal:item> | ||||||
|           </tal:items> |           </tal:items> | ||||||
|           </tbody> |           </tbody> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue