Browse Source

HUE-2981 [search] Avoid error when un-nesting children documents

Romain Rigaux 8 years ago
parent
commit
ec115a6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/search/src/search/templates/common_search.mako

+ 1 - 1
apps/search/src/search/templates/common_search.mako

@@ -1145,7 +1145,7 @@ ${ dashboard.layout_skeleton() }
       <!-- ko if: doc.childDocuments != undefined -->
       <!-- ko if: doc.childDocuments != undefined -->
         <table id="result-container" data-bind="visible: $root.hasRetrievedResults()" style="margin-top: 0; width: 100%; border-collapse: initial">
         <table id="result-container" data-bind="visible: $root.hasRetrievedResults()" style="margin-top: 0; width: 100%; border-collapse: initial">
           <thead>
           <thead>
-            <tr data-bind="visible: $root.collection.template.fieldsSelected().length > 0, template: {name: 'result-sorting'}">
+            <tr data-bind="visible: $root.collection.template.fieldsSelected().length > 0, template: {name: 'result-sorting', data: $root.collection}">
             </tr>
             </tr>
             <tr data-bind="visible: $root.collection.template.fieldsSelected().length == 0">
             <tr data-bind="visible: $root.collection.template.fieldsSelected().length == 0">
               <th style="width: 18px">&nbsp;</th>
               <th style="width: 18px">&nbsp;</th>