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,7 +19,8 @@ function new_wnd() ...@@ -19,7 +19,8 @@ function new_wnd()
<!--#/in--> <!--#/in-->
<!--#if btn_submit--> <!--#if btn_submit-->
<!--#call expr="REQUEST.set('results', PrincipiaFind(this(), <!--#with "_.namespace(
results=PrincipiaFind(this(),
obj_ids=obj_ids, obj_ids=obj_ids,
obj_metatypes=obj_metatypes, obj_metatypes=obj_metatypes,
obj_searchterm=obj_searchterm, obj_searchterm=obj_searchterm,
...@@ -30,12 +31,11 @@ function new_wnd() ...@@ -30,12 +31,11 @@ function new_wnd()
obj_roles=obj_roles, obj_roles=obj_roles,
search_sub=search_sub, search_sub=search_sub,
REQUEST=REQUEST))"--> REQUEST=REQUEST))"-->
<!--#call expr="REQUEST.set('result_len', _.len(results))"-->
<!--#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