[pmwiki-users] Noticed a fox bug

James DeVain jamesdevain at mail.com
Wed May 10 07:09:04 CDT 2017


Hello, everyone. I've noticed a bug with fox. When I submit something like:

(:aaa:AAA:)
(:bbb:BBB:)
(:ccc:CCC:)

(:fox form1 ptvtarget={$FullName}:)
(:input hidden aaa "XXX":)
(:input hidden bbb "YYY":)
(:foxreplace target="{$FullName}" put=string mark=":ccc:{$:ccc}:" foxtemplate=":ccc:ZZZ:":)
(:input submit post Submit:)
(:foxend form1:)

What expect to get is:

(:aaa:XXX:)
(:bbb:YYY:)
(:ccc:ZZZ:)

But I end up with:

(:aaa:XXX:)
(:bbb:YYY:)
()

I've figured out that I can do a workaround by adding a dummy foxreplace field before the one
I want to actually use, like:

(:fox form1 ptvtarget={$FullName}:)
(:input hidden aaa "XXX":)
(:input hidden bbb "YYY":)
(:foxreplace target="{$FullName}" put=string mark="_dummy_" foxtemplate="whatever":) <!--workaround-->
(:foxreplace target="{$FullName}" put=string mark=":ccc:{$:ccc}:" foxtemplate=":ccc:ZZZ:":)
(:input submit post Submit:)
(:foxend form1:)

As long as the dummy feild's target is the same as the following one, it'll work.

Thanks



More information about the pmwiki-users mailing list