Fix viewSearch template on no result case with extraDisplayedColumns defined
authorBenjamin Renard <brenard@zionetrix.net>
Mon, 27 Oct 2014 11:04:56 +0000 (12:04 +0100)
committerBenjamin Renard <brenard@zionetrix.net>
Mon, 27 Oct 2014 11:04:56 +0000 (12:04 +0100)
public_html/templates/default/viewSearch.tpl

index 23898be..5a56a16 100644 (file)
     </tr>
     {foreachelse}
       <tr class='LSobject-list'>
-        <td colspan='3' class='LSobject-list-without-result'>{$LSsearch->label_no_result}</td>
+        <td colspan='{if $LSsearch->extraDisplayedColumns}{count($LSsearch->extraDisplayedColumns)+3}{else}3{/if}' class='LSobject-list-without-result'>
+          {$LSsearch->label_no_result}
+        </td>
       </tr>   
     {/foreach}
 </table>