Closed (fixed)
Project:
Webform
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2007 at 19:23 UTC
Updated:
10 Jun 2007 at 20:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
gribnif commentedI discovered that my previous patch did not properly restore values to fields that were contained in a fieldset when using the "Previous Page" button. This version addresses that problem. I also generated the patch in a way that should apply better to the current HEAD.
Comment #2
gribnif commentedGrrr. I used SVN to generate that last patch, so it excluded the attached file. Save it in the components directory with the name pagebreak.inc.
Comment #3
Anonymous (not verified) commentedThis patch is awesome with one problem, you should not disable control of the component weight, otherwise there is no way to set where the pagebreak should occur.
I really hope this gets commited!
Comment #4
Anonymous (not verified) commentedAnother problem, it doesn't seem to restore values properly when traversing pages (previous page for example)
Comment #5
quicksketchI've almost certainly broken this patch's implementation with the changes to the 5.x branch. Form elements are now assigned a key so they don't use that cryptic timestamp as a their id/name attributes. Could you re-roll for 5.x?
This is a totally rockin' feature btw.
Comment #6
gribnif commentedI had already solved both of cpisto's problems, and just hadn't gotten around to reuploading yet. I guess it's just as well!
I'll download a new version and rework the patch soon.
Comment #7
quicksketchThanks! Keep an eye out for http://drupal.org/node/141407 also. Just be aware that fieldsets are already broken, and not caused by your changes.
Comment #8
gribnif commentedHere's an updated version of the patch, written against 1.113.2.18 2007/05/06. It includes the fixes to cpisto's bug reports.
Please remember that you also need to rename pagebreak_inc.txt (in the next post) to pagebreak.inc and put it into the components folder.
Comment #9
gribnif commentedUpdated pagebreak.inc file. Rename to pagebreak.inc and put it into the components folder.
Comment #10
quicksketchRock! Thanks, I'll review and put in before other major changes go in.
Comment #11
jdblank commentedSorry, as a newbie can you let me know how to apply this patch to the form module. It is exactly what I need but I am not sure how to do it.
Thanks,
Josh
Comment #12
quicksketchHi jdblank :) Welcome to Drupal. I'm sure you've noticed, all development on Drupal (both core and modules) is done through patches. Try http://drupal.org/patch/apply for learning how to use a patch, and http://drupal.org/patch/create for learning how to make them. Thanks!
Comment #13
jdblank commentedThanks. I was able to add it no problem.
The page break inserts fine but pressing next page does not do anything. Just reloads the current page.
Josh
Comment #14
gribnif commentedjdblank, are you using Drupal 5.x? This patch will not work with 4.x.
Comment #15
jdblank commentedYes 5.x
Comment #16
gribnif commentedIs there any chance you're testing this with an anonymous user, with cookies turned off? I haven't tried, but that might cause what you're seeing.
If that's not the reason, then I'm stumped as to what it could be. Diagnosing it would unfortunately be rather difficult. We might have to wait for others to have the same problem.
Comment #17
jdblank commentedi was testing with anonymous but cookies were on.
Comment #18
quicksketchWorks awesome for me. Applied with no problems. I've committed this enhancement to the 5.x development version. Let's work out any kinks in a new issue. Thanks so much Gribnif!
Comment #19
(not verified) commented