Comment 5 for bug 512503

Revision history for this message
Thibaut (thibaut-blue) wrote :

This works:

s.clone().setCat will not overwrite the category field for the next compare. That's why I'm suprised that the above doesn't work.
This is no loop however.

    <li #{if s.isCat(search.katta.SearchControllerSettings.CATEGORY.all)}class="active"#{/if}><a href="@{www.WebSearch.index(s.clone().setCat(search.katta.SearchControllerSettings.CATEGORY.all))}">Alle</a></li>
    <li #{if s.isCat(search.katta.SearchControllerSettings.CATEGORY.business)}class="active"#{/if}><a href="@{www.WebSearch.index(s.clone().setCat(search.katta.SearchControllerSettings.CATEGORY.business))}">Wirtschaft</a></li>