Commit Graph

195 Commits

Author SHA1 Message Date
Will Rossiter
4cdf44a1ef Update UserDefinedFormControllerTest.php 2014-12-03 14:52:57 +13:00
John Learn
083bba0c75 update failing test w/new field name. 2014-10-27 11:38:14 -04:00
Kirk Mayo
54b4dca799 BUG: Fixing unit tests for form processing and adding unit test to check if form has been completed 2014-01-06 15:15:01 +13:00
Kirk Mayo
ea7163f02e BUG: Fixes #179 broken unit tests caused by tests not having classes for ExtendedEditableFormField 2013-12-20 14:23:13 +13:00
Nik Rolls
da6a624b6c - Added calls to Object#extend in EditableFormField's getFieldConfiguration and getFieldValidationOptions
- Added tests for extensions on EditableFormField
2013-12-05 19:08:08 +13:00
Jyrki Lilja
107fee32a0 Make sure tests pass after adding clear button. 2013-11-25 13:55:42 +02:00
Will Rossiter
55a5187f79 FIX: escape columns and tables for postgres 2013-07-15 21:52:30 +12:00
Will Rossiter
b3805d2a8b Remove test for old submissions tab 2013-04-17 19:37:24 +12:00
Damian Mooyman
a0f48d636e BUG Fixed incorrect static member declaration
- Changed configurable static variables to private as per recent API updates to 3.1
- Use of statics as configurable variables replaced with config api usage
2013-04-10 11:35:58 +12:00
Ruud Arentsen
75c6d40fa4 BUG Fix the 'always modified' label in treeview. Fixes #48.
userforms always reported 'modified' in the sitetree. Fixed the issue by
checking the userdefinedform record and the formfields.
2012-10-18 20:19:33 +13:00
Kirk Mayo
e4875edd05 BUG: Coding convention changes mainly replacing spaces with tabs 2012-07-17 16:09:31 +12:00
Kirk Mayo
4335d8d910 #BUGFIX: ticket 7314 fixing the PHPUnit tests for SS 3.0 2012-06-22 12:21:08 +12:00
Will Rossiter
d08543f705 MINOR: translate pages string in submittedformfield. MINOR: updated unit test to reflect updated template 2012-05-19 10:49:34 +12:00
Will Rossiter
3256663cad BUGFIX: fixes for 3.0 unit tests. Ensure form is not shown if no fields in the list, Prevent nested with getSubmissions(). 2012-05-07 22:00:18 +12:00
Stig Lindqvist
4f50dd287e MINOR Deprecation fixes to the SubmittedFormTest 2012-05-07 17:41:29 +12:00
Stig Lindqvist
98256fc8bf MINOR Circumvent the sloppy array_key_exists() check in YAMLFixture::writeDataObject() by adding ID fields to SubmittedFormTest.yml 2012-05-07 17:41:29 +12:00
Stig Lindqvist
816edabd3f MINOR Added public keyword for methods (style guidelines) 2012-05-07 17:41:29 +12:00
edchipman@gmail.com
ef3953fc68 Replaced instances of new DataObjectSet() with new ArrayList()
Removed Validator::set_javascript_validation_handler() call
2012-05-07 17:41:29 +12:00
edchipman@gmail.com
5de26cd897 Replaced all instances of new FieldSet() with new FieldList()
Replaced the complex table field used for editing the email recipients with GridField

Replaced instances of SAPPHIRE_DIR with FRAMEWORK_DIR

Replaced instances of sapphire/ in css and templates with framework/

Re-organized tabs on user defined form so they are top level

Replaced calls to toDropdownMap() with map()

Renamed getCMSFields_forPopup() top getCMSFields()
2012-05-07 17:41:29 +12:00
Will Rossiter
2c9e68a928 MINOR: clean up of project. MINOR: removed versioned task. Out of date for usage. 2012-04-14 21:59:56 +12:00
Will Rossiter
fed25ad45b BUGFIX: added exists() check on getFormFields (via Bruce Walter) to prevent fieldless forms. BUGFIX: if built form is empty still strip the $UserDefinedForm token out of the content. 2011-03-21 09:14:45 +13:00
Will Rossiter
fb3fb184e1 BUGFIX: fixed incorrect formatting for jQuery.validate rules. ENHANCEMENT: added getErrorMessage() to ensure consistent error messages. BUGFIX: readded missing custom messages 2010-12-19 01:19:19 +00:00
Ingo Schommer
a71b553fd6 BUGFIX Fixed UserDefinedFormControllerTest to work with globally disabled security tokens (API change in 2.4.3) 2010-11-01 02:22:29 +00:00
Mateusz Uzdowski
078043f189 BUGFIX: encode the csv file by hand, fputcsv is not parsing newlines properly 2010-10-21 23:41:47 +00:00
Mateusz Uzdowski
cec87a859e BUGFIX: ORDER BY in nested query does not work under MSSQL, remove 2010-10-08 00:56:52 +00:00
Mateusz Uzdowski
a2e998ab79 BUGFIX: IN clause was not being picked up, failing in MSSQL and not giving proper results on MySQL (OS ticket 6072) 2010-10-08 00:29:18 +00:00
Mateusz Uzdowski
8d3cb472dc BUGFIX: remove reliance on str_getcsv (it's PHP 5.3 only).
ENHANCEMENT: sort the columns according to the most recent form setup (thanks jonomenz for the query)
ENHANCEMENT: test quotes and commas
2010-10-07 23:06:49 +00:00
Mateusz Uzdowski
14ff7759a7 BUGFIX: rewrite the export function to fix the bug that multiplied columns when adding rows, and to use built-in php csv functions. 2010-10-07 21:37:21 +00:00
Mark Stephens
d99b76723c MINOR: unit test assuming database IDs, doesn't hold in postgres 2010-09-20 04:18:25 +00:00
Mark Stephens
3bb82d43f6 BUGFIX: ansi-compliant SQL in unit test 2010-09-20 03:54:00 +00:00
Will Rossiter
48fbd30bc4 MINOR: commented out unfinished test 2010-09-08 10:52:19 +00:00
Will Rossiter
503c5c3ff6 ENHANCEMENT: implemented tests for exporting csv files 2010-09-08 10:35:43 +00:00
Will Rossiter
7eef5646e5 ENHANCEMENT: added test coverage for populateFromPostData() 2010-09-08 03:20:28 +00:00
Will Rossiter
bc0d4c7692 ENHANCEMENT: Implemented tests to complete email recipients class. APICHANGE: changed *FieldSettings() to *Setting() 2010-09-07 22:44:43 +00:00
Will Rossiter
3c1d81d014 ENHANCEMENT: added test coverage for UserDefinedForm.php and placeholders for other sections. API change: processNewFormFields removed
API change: refactored Form() into getFormFields(), getFormActions(), getRequiredFields()

ENHANCEMENT: added updateForm* extension hooks to allow customization of userforms
BUGFIX: gave custom scripts their own ID to enable it to be blocked.
2010-09-03 05:06:13 +00:00
Mateusz Uzdowski
3c638d27fc MINOR: fixed spelling mistake (related to 99491) 2010-02-22 01:37:27 +00:00
Will Rossiter
70f05b891e BUGFIX: fixed conflict of Versioned extension functions. MINOR: added tests for publishing multiple option fields 2009-12-12 08:59:20 +00:00
Ingo Schommer
db4cd3de31 BUGFIX Fixed UserDefinedFormEditorTest: Logging in before publishing so canPublish() doesnt return false 2009-11-09 04:48:35 +00:00
Sam Minnee
2ca993b7c4 BUGFIX: Updated module to support 2.4 API changes 2009-10-26 22:04:11 +00:00
Ingo Schommer
97e49b296f BUGFIX Fixed column naming in UserDefinedFormEditorTest 2009-10-15 19:48:08 +00:00
Sean Harvey
4cfe303989 MINOR Fixed where clauses to use ANSI compatible SQL in UserDefinedFormEditorTest 2009-10-06 05:11:12 +00:00
Sean Harvey
3fe18477d8 MINOR Removed backticks from queries in UserDefinedFormEditorTest because they break SQL Server and PostgreSQL 2009-10-06 04:22:29 +00:00
Will Rossiter
379bcc7921 ENHANCEMENT: added inital versioning / staging support to userforms. Supports different forms on stage / live. ENHANCEMENT: added unit tests to cover versioning / staging 2009-09-22 22:36:53 +00:00
Will Rossiter
07c8ad9ff3 BUGFIX: make sure to delete an object from the test 2009-04-17 02:29:40 +00:00
Will Rossiter
83d1f2fe86 ENHANCEMENT: rewrote the user defined forms cms JS into jquery. ENHANCEMENT: rewrote templates and removed dulicate code. APICHANGE: created parent class for EditableFormField, EditableOption and EditableMultiOption to prevent code duplication. MINOR: added icon for literal field. MINOR: added quick unit test. MINOR: removed dulicate images 2009-04-17 02:26:40 +00:00