]> git.ozlabs.org Git - patchwork/commitdiff
forms: Only pass post data to multiplepatchform if that was what was submitted
authorJeremy Kerr <jk@ozlabs.org>
Sun, 30 Dec 2012 05:57:18 +0000 (13:57 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Sun, 30 Dec 2012 05:59:52 +0000 (13:59 +0800)
When updating bundles, we get a spurious error message in the
MultiplePatchForm; it's performing validation on the blank form data.

This change only passes the post data to the MuliplePatchForm if we
detect (through data['form']) that it was the MultiplePatchForm that was
submitted.

This fixes the current testsuite failure.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

No differences found