Commit Graph

78 Commits

Author SHA1 Message Date
mikg0
112daf0262 remove obsolete validation error messages -> issue #12
remove obsolete validation error messages -> issue #12
2013-05-24 17:24:27 +02:00
Sean Harvey
5367e13bcb Removing end PHP tags 2013-01-07 13:40:45 +13:00
Ingo Schommer
ff49a0592f BUG Write current step to session when creating it 2013-01-03 09:48:55 +01:00
Ingo Schommer
5be0c052a5 BUG Don't call MultiFormStep->loadData() twice 2013-01-03 09:48:55 +01:00
Ingo Schommer
60c69adf7e ENHANCEMENT Allowing $filter argument in MultiForm->getSavedSteps() 2013-01-03 09:48:55 +01:00
Ingo Schommer
32d56ade02 BUGFIX Always fall back to creating a new step (in case the session or request data is invalid) 2013-01-03 09:48:55 +01:00
Ingo Schommer
24b768ecfe BUGFIX Using actual step instances instead of half-complete ArrayData templates in MultiForm->getAllStepsLinear()/getAllStepsRecursive(). Linking current form instance on these steps, and ensuring the title has a fallback to classname globally (not just when retrieving steps through getAllSteps*() methods) 2013-01-03 09:48:51 +01:00
Sean Harvey
c580887e21 MINOR Fixing use of deprecated functions 2012-06-28 13:51:08 +12:00
Sean Harvey
9287dbb681 BUGFIX Use Config class to get static 2012-05-14 16:36:41 +12:00
Sean Harvey
6bbe69079d MINOR Updating code to support SS 3.0, still maintains backwards compatibility with 2.4, just not in the tests. 2012-05-14 15:23:01 +12:00
ajshort
01ff2cb36a ENHANCEMENT: Added a method to set the link where the form is displayed, allowing multiforms to run inside controller actions. 2011-12-19 21:38:25 +11:00
ajshort
4f1510ff5b BUGFIX: Run validation on the final step. 2011-12-19 14:21:56 +11:00
ajshort
65d1681331 MINOR: Make the form reference consistently available on form steps. 2011-12-19 14:21:47 +11:00
ajshort
1f1bb225f0 BUGFIX: Fixed the form state not being saved to the session after a custom validateStep() validation failure. 2011-02-06 07:59:59 +11:00
ajshort
9816df1538 ENHANCEMENT: Manually set the form controller and name in MultiForm::__construct() so they are available for field construction. 2011-02-05 21:50:17 +11:00
Sean Harvey
209e56aa4b API CHANGE MultiForm::$start_step is now declared as public, not protected, due to changes in Object::get_static() 2010-05-11 03:30:55 +00:00
Sean Harvey
60fa84df85 ENHANCEMENT Custom text for back/next and submit buttons on a per-step basis (defaults to MultiForm.BACK, MultiForm.SUBMIT etc translatable entities) 2010-05-11 03:27:42 +00:00
Ingo Schommer
89513c6da6 MINOR Fixed SQL quoting (requires 2.4)
MINOR Added ingo at ss dot org as a maintainer
2010-03-22 10:49:04 +00:00
Geoff Munn
f508442eb5 BUGFIX: column and table names now quoted properly 2010-03-14 21:09:04 +00:00
Sean Harvey
794e74bebe BUGFIX #4480 MultiForm::next() and MultiForm::prev() now save the form data before checking the next or previous step 2010-01-10 00:57:33 +00:00
Sean Harvey
c2ba6d441f API CHANGE Added currentSessionHash property to MultiForm which stores the currently opened session by the user
API CHANGE Renamed MultiForm::getSessionRecord() to getCurrentSession() and removed the parameter, since this wasn't done in a very OOP manner
MINOR Test for MultiFormSession::markCompleted() to ensure that session can't be used again by MultiForm
2009-08-05 10:12:13 +00:00
Rainer Spittel
a907cc6493 ENHANCEMENT: enabled MultiForm to use customised action (actions_exempt_from_validation).
Changed has been done in the constructor to read the static variables (incl. overwritten variables).
2009-07-27 23:14:04 +00:00
Sean Harvey
8e04dfbaa5 MINOR Tidy up of tests 2009-07-20 09:22:49 +00:00
Sean Harvey
203bb03286 MINOR Reuse of $currentStep variable, instead of retrieving the step again 2008-12-17 11:11:53 +00:00
Sean Harvey
9f8d2e1da8 ENHANCEMENT Removed hack of specific action to bypass validation and allow specifying actions to be exempt through a public static variable 2008-12-17 11:08:46 +00:00
Sean Harvey
a8877b780f ENHANCEMENT Made MultiForm->prev() do the same behaviour for saving data as MultiForm->next() 2008-10-01 22:18:44 +00:00
Sean Harvey
647a5257e3 MINOR Removed unused static function is_action_field from MultiForm 2008-10-01 21:10:20 +00:00
Ingo Schommer
7968b09fea ENHANCEMENT Added MultiForm->getSavedSteps() and MultiForm->getSavedStepByClass()
ENHANCEMENT Added MultiFormStep->validateStep() for custom validation routines
ENHANCEMENT Changed MultiForm->save() to use $form->getData() instead of $data to ensure that all fields are saveable into a DataObject (had trouble with ConfirmedPasswordField returning array instead of string)
2008-10-01 18:36:52 +00:00
Sean Harvey
228d03592e MINOR Removed old MultiForm::__construct() comments 2008-09-20 09:36:54 +00:00
Sean Harvey
a42bb6103b BUGFIX Removing url_type which isnt very useful MINOR documentation updates ENHANCEMENT return value on MultiForm->setCurrentStep() MINOR code cleanup in general 2008-07-21 21:06:59 +00:00
Sean Harvey
1b662ff9e1 BUGFIX $this->form wasn't accessible on MultiFormStep because it wasn't being set by MultiForm->__construct() early enough in the piece 2008-07-21 05:22:06 +00:00
Sean Harvey
69b5cd6686 Don't validate if not necessary - merged from branches/kiwiselect 2008-07-21 05:14:04 +00:00
Sean Harvey
8d138f4059 MINOR Removed 3 useless lines of code 2008-07-21 03:34:27 +00:00
Sean Harvey
78080c6238 ENHANCEMENT Correct use of parent::__construct() so that fields, actions and validation are correctly set without extra code to set them on MultiForm 2008-07-21 03:21:51 +00:00
Sean Harvey
80e71b5ccf BUGFIX SQL injection possibility fix on MultiForm->getSessionRecordByID() 2008-07-09 06:34:28 +00:00
Sean Harvey
f362ed07be BUGFIX Disable security token inherited from Form. We do not require this as we tie a MultiForm instance to a MultiFormSession via a URL parameter 2008-07-04 01:07:33 +00:00
Sean Harvey
fce12220b2 ENHANCEMENT Allowed static $ignored_fields to be overloaded on subclass of MultiForm, so specific fields can be ignored 2008-07-01 23:57:07 +00:00
Sean Harvey
3b9f092ac1 BUGFIX We now call $nextStep->Link and $prevStep->Link() instead of $this->getCurrentStep()->Link() on MultiForm->next() and MultiForm->prev() which is confusing, and doesn't always work 2008-06-23 05:06:36 +00:00
Sean Harvey
295cd5077e API CHANGE Ticket #2562 - Cleaner instanciation of MultiForm subclass, init() is removed with the move of session/step initialization to __construct() 2008-06-19 10:29:47 +00:00
Sean Harvey
35f2de5de3 ENHANCEMENT MultiFormStep->form can now be accessed to return the form that the step was created on 2008-06-18 08:07:11 +00:00
Sean Harvey
e4e43ee4af ENHANCEMENT prev() now saves the current step data, exactly as next() does 2008-06-05 01:13:55 +00:00
Sean Harvey
4d0e9491cc ENHANCEMENT Don't validate if hitting the "prev" action 2008-06-05 01:12:08 +00:00
Sean Harvey
4f758064d9 FEATURE Allow setting a flag (true, by default) so that you can't use the "back" form action for a step. 2008-05-27 04:49:16 +00:00
Sean Harvey
2385c23d63 BUGFIX getCurrentStep should be called as a method, not a property 2008-05-26 04:06:09 +00:00
Sean Harvey
b0f45b505b BUGFIX validator couldn't tie itself to a form correctly, encapsulated validator setup on MultiForm->setValidator() 2008-05-24 23:49:49 +00:00
Sean Harvey
edcdbf8935 Fixed re-creating of a new Hash field even if one exists, also fixed non-object errors through better structured setSession() method 2008-05-14 11:30:35 +00:00
Sean Harvey
54164a129f Whitespace 2008-05-14 10:57:41 +00:00
Sean Harvey
6cfe0680c0 Added TODO items to fix later 2008-05-14 10:57:25 +00:00
Sean Harvey
927e974724 Added TODO about session being "baked" into MultiForm directly 2008-05-14 10:45:19 +00:00
Sean Harvey
8d93736482 Fall back to using the class name if there is no title property set 2008-05-14 10:40:19 +00:00