Fix jobterms ajax when smarty debug is enabled.
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Tue, 19 Oct 2010 21:19:27 +0000 (23:19 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Tue, 19 Oct 2010 21:19:27 +0000 (23:19 +0200)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
templates/include/jobterms.branch.tpl

index 71a384c..7e19811 100644 (file)
@@ -27,7 +27,7 @@
   {ldelim}
     "data" :
     {ldelim}
-      "title" : "{$term.name|replace:'"':'\\"'}{if $filter} ({$term.nb} {$filter}{if $term.nb > 1}s{/if}){/if}",
+      "title" : "{$term.name|replace:'"':'\\"'}{if t($filter)} ({$term.nb} {$filter}{if $term.nb > 1}s{/if}){/if}",
       "attr" : {ldelim}
         {if $attrfunc}"href" : "javascript:{$attrfunc}('{$treeid}','{$term.jtid}',\"{$term.full_name|replace:'"':'\\\\\\"'}\")",{/if}
         "title" : "{$term.full_name|replace:'"':'\\"'}"