Skip to content

Commit

Permalink
Item9281: Get parent using %META to avoid regex issue - pharvey's
Browse files Browse the repository at this point in the history
suggestion

git-svn-id: http://svn.foswiki.org/trunk@8083 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Jul 9, 2010
1 parent 2f94369 commit 7fb5732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/templates/more.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<form name="main" action="%SCRIPTURLPATH{"save"}%/%WEB%/%TOPIC%?action_save=1" method="post">
<div class="foswikiFormSteps">
<div class="foswikiFormStep">
---++!! %MAKETEXT{"Current parent:"}% %IF{"'NONE%SEARCH{ "^%TOPIC%$" casesensitive="on" scope="topic" regex="on" nosearch="on" nototal="on" format="$parent" }%'='NONE'" then="(none)" else='%SEARCH{ "name = '%TOPIC%'" scope="topic" type="query" nosearch="on" nototal="on" format="[[$parent]]" }%' }%
---++!! %MAKETEXT{"Current parent:"}% %IF{"'NONE%META{"parent" dontrecurse="on"}%'='NONE'" then="(none)" else='%SEARCH{ "name = '%TOPIC%'" scope="topic" type="query" nosearch="on" nototal="on" format="[[$parent]]" }%' }%
</div>
<div class="foswikiFormStep">
---+++!! %MAKETEXT{"Select topic parent:"}%
Expand Down

0 comments on commit 7fb5732

Please sign in to comment.