#985 new
Bryan Larsen

ajax delete messes with page_path

Reported by Bryan Larsen | November 30th, 2011 @ 10:08 PM

How to reproduce:

use Ajax to update a part during a DELETE. Any parts in the form will end up with an incorrect page_path, so when they're submitted, they'll try to update the wrong page and fail.

How to fix:

in rapid_forms.dryml:

 page_path = if (request.post? || request.put?) && params[:page_path]

to

 page_path = if (request.post? || request.put? || request.delete?) && params[:page_path]

Fix has been committed to hobo-jquery. This is a note to myself to fixup on 1.3 branch too.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages