[pmwiki-users] Data from form is posted twice

Sivakatirswami katir at hindu.org
Tue Jul 31 23:54:15 CDT 2007


I have a ZAP form that is coming into Site.AllGroupFooter
as an include of Site.ToDoForm.

What it does is: takes the form values and creates a new
page with the data on it....

After upgrading to 2.2.0 beta 62, when we submit the form
the ZAP engine runs the submission twice in a row and it
creates two identical new pages with the thread number incremented


e.g. TODO-VisitorCare.1000
TODO-VisitorCare.1001

will be created with the same data:


(:comment data:)
(:Project: VisitorCare:)
(:Owner: Andre:)
(:Priority: 3-Med:)
(:Status: Complete:)
(:Description: Build CGI for parsing Visitor Calendar and notify host by 
email:)
(:returnpage: VisitorCare.HostNotification:)


By submitting this form only once:

Any ideas?

------------
(:zapform:)

(:if ! group TODO*:)Add Tasks Related to this page:(:if:)

Project:
(:if group TODO*:)(:input text Project '{$:Project}':)
(:if ! group TODO*:)(:input text Project {$Group} :)(:if:)

Owner:
(:if group TODO*:)
(:input text Owner '{$:Owner}':)
(:if ! group TODO*:)
(:pagelist fmt=#dropdownteamlist group=Team:)
(:if:)


Priority:
(:input default Priority '{$:Priority}':)
(:input select Priority '1-Top':)
(:input select Priority '2-Hi':)
(:input select Priority '3-Med':)
(:input select Priority '4-Lo':)
(:input select Priority '5-Done':)

Status:
(:input default Status '{$:Status}':)
(:input select Status 'Open':)
(:input select Status 'In Progress':)
(:input select Status 'Pending':)
(:input select Status 'Hold':)
(:input select Status 'Complete':)
(:input select Status 'Cancelled':)

(:if group TODO*:)
Description: (:input text Description "{$:Description}" size=50:)

(:if group -TODO*:)
Description:
(:input text Description "{$Description}" size=50:)

(:if ! group TODO*:)
(:zap datapage="TODO-{Project}.#":)
(:input hidden returnpage "{$FullName}":)
(:if group TODO*:)
(:input hidden returnpage "{$:returnpage}":)
(:ifend:)
(:input hidden savedata 
"Project,Owner,Priority,Status,Description,returnpage":) (:input submit 
value="Submit":)(:zapend:)
(:messages:)


Sivakatirswami




More information about the pmwiki-users mailing list