Commit 54fedc41 authored by Jim Fulton's avatar Jim Fulton

Changed to use with tag rather than REQUEST.set to avoid

getting the wrong "results".
parent fb82351a
...@@ -19,23 +19,23 @@ function new_wnd() ...@@ -19,23 +19,23 @@ function new_wnd()
<!--#/in--> <!--#/in-->
<!--#if btn_submit--> <!--#if btn_submit-->
<!--#call expr="REQUEST.set('results', PrincipiaFind(this(), <!--#with "_.namespace(
obj_ids=obj_ids, results=PrincipiaFind(this(),
obj_metatypes=obj_metatypes, obj_ids=obj_ids,
obj_searchterm=obj_searchterm, obj_metatypes=obj_metatypes,
obj_expr=obj_expr, obj_searchterm=obj_searchterm,
obj_mtime=obj_mtime, obj_expr=obj_expr,
obj_mspec=obj_mspec, obj_mtime=obj_mtime,
obj_permission=obj_permission, obj_mspec=obj_mspec,
obj_roles=obj_roles, obj_permission=obj_permission,
search_sub=search_sub, obj_roles=obj_roles,
REQUEST=REQUEST))"--> search_sub=search_sub,
<!--#call expr="REQUEST.set('result_len', _.len(results))"--> REQUEST=REQUEST))"-->
<!--#if results--> <!--#if results-->
<HR> <HR>
<STRONG> <STRONG>
Found <!--#var result_len--> item<!--#if expr="result_len != 1"-->s<!--#/if-->. Found <!--#var results fmt=collection-length--> item<!--#if expr="_.len(results) != 1"-->s<!--#/if-->.
</STRONG> </STRONG>
<HR> <HR>
...@@ -65,6 +65,7 @@ No items were found matching this query. ...@@ -65,6 +65,7 @@ No items were found matching this query.
</STRONG> </STRONG>
<HR> <HR>
<!--#/if--> <!--#/if-->
<!--#/with-->
<!--#/if--> <!--#/if-->
</BODY> </BODY>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment