Commit Graph

130 Commits

Author SHA1 Message Date
Peter Thaleikis
08a32a450b MINOR renaming method to be consitant with the naming 2015-12-01 23:26:41 +13:00
Peter Thaleikis
ffa50b1f48 MINOR fixing MultiFormObjectDecorator.php to work on PG 2015-12-01 23:15:02 +13:00
Peter Thaleikis
7ae2e938dc BUGFIX: remove last MultiFormSessionID 2015-11-30 22:25:40 +13:00
Damian Mooyman
243caeb579 Merge remote-tracking branch 'origin/1.1'
# Conflicts:
#	.travis.yml
#	code/extensions/MultiFormObjectDecorator.php
#	code/model/MultiForm.php
#	composer.json
#	tests/MultiFormTest.php
2015-11-30 10:30:20 +13:00
Peter Thaleikis
d239c294af MINOR codestyle to improve readibility 2015-11-25 00:08:14 +13:00
Peter Thaleikis
78f98a539c Highlighting the completed steps with a CSS class 2015-11-23 22:53:45 +13:00
Peter Thaleikis
f96a9832d9 remove trailing spaces in the codebase 2015-11-02 13:38:50 +13:00
Sean Harvey
5eb68aa62c Fixing MultiFormObjectDecorator to work with SS 3.1
Conflicts:
	tests/MultiFormTest.php
2015-04-30 23:03:34 +12:00
Loz Calver
59cc14b347 NEW: session ID GET var can be renamed 2015-02-03 15:17:42 +00:00
Jeremy Shipman
25a0133dfd FIX: don't html5 validate prev actions 2014-11-13 13:38:40 +13:00
muskie9
2471fa165b BUGFIX DailyTask Deprecation 2014-10-23 09:44:12 -05:00
Sean Harvey
d414d848bb Fixing SQLQuery to SQLSelect for master compatibility 2014-09-19 15:14:37 +12:00
Jeremy Shipman
8940c2e1bb FIX: make sure session message clears after rendering the template. See Form->forTemplate() 2014-09-03 16:33:14 +12:00
Sean Harvey
b69a4b0fbe Fixing static visibility 2014-08-13 10:11:02 +12:00
Sean Harvey
bb9e912fe1 Merge remote-tracking branch 'origin/1.0' 2014-08-12 16:50:53 +12:00
Will Rossiter
b75301909b As per next(), save step data before the validate method is called. 2014-07-11 21:14:27 +12:00
Sean Harvey
c00a498375 Merge pull request #21 from halkyon/casting_visibility
Fixing $casting visibility to be private to match ViewableData parent.
2014-07-03 10:22:05 +12:00
Will Rossiter
8485666273 FIX multiple session records being created per page request 2014-07-02 21:03:48 +12:00
Sean Harvey
b68fc5d587 Fixing $casting visibility to be private to match ViewableData parent. 2014-06-17 15:59:50 +12:00
Will Rossiter
bd2e9ce857 Correct documentation 2014-02-04 14:53:52 +13:00
sheadawson
dd155c81e3 MINOR use Object::create to create step instances 2013-12-10 17:05:17 +11:00
sheadawson
3d072f5e0d BUGFIX getCompletedPercent was calling non-existing properties 2013-12-03 17:15:24 +11:00
Trevor
6a4dc5dc80 Get MultiFormPurgeTask to actually work.
* `run()` is part of BuildTask not DailyTask
* `$session->delete()` doesn't return anything so the conditional will never be true
* Updated comments.
2013-10-15 14:12:45 +11:00
Will Rossiter
d9683b69ef Revert to public 2013-05-25 19:41:59 +12:00
Will Rossiter
2cdd3b5469 Use 3.1 syntax for extension database fields 2013-05-25 19:08:55 +12:00
Will Rossiter
25f0c051ff FIX: Update class properties to use late static binding 2013-05-25 19:04:59 +12:00
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
Sean Harvey
68262bbc21 Fixing class to extend DataExtension for SS3 compatibility 2013-01-07 13:40:18 +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
Sean Harvey
18ab6d3933 BUGFIX Use Member::currentUser() instead of Member::currentMember() which isn't available in both SS 2.4 and 3.0 2012-05-14 15:00:57 +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
1374144435 API CHANGE Changed MultiFormStep::$next_steps to public, and MultiFormStep::$is_final_step to public 2010-05-11 03:35:40 +00: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
Sean Harvey
b84fae26a3 BUGFIX Checking $this->Data exists before trying to unserialize it 2010-05-11 03:20:33 +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