Commit graph

1766 commits

Author SHA1 Message Date
Patrick Donelan
ad0f3b388d SurveyJSON->update() should iterate over supplied object keys, not
existing object keys. Also applied PBP formatting, fat commas, etc..
2008-12-15 10:25:22 +00:00
Patrick Donelan
4fe81a69f6 Implemented Survey Jump-to combo box (#9202)
You will need to manually import survey_rfe_9202 until this branch is
merged back into trunk.
2008-12-15 03:42:39 +00:00
Colin Kuskie
941240370b Add a mutator for questionsAnswered, with tests.
Correct POD for recordResponses.
Begin recordResponses answer processing tests.
2008-12-15 00:09:03 +00:00
Colin Kuskie
ad00b0f082 Flesh out the recordResponses POD. Almost ready for more in depth testing. 2008-12-14 04:56:43 +00:00
Colin Kuskie
aa04599aec recordResponse tests (just a few)
Fix a bug where if a section is terminal, and has no questions, it did not return the terminal flag as true.
A little recordResponse POD.
2008-12-13 03:56:26 +00:00
Colin Kuskie
3c7162fb8f Add POD stubs, fully document goto.
Prevent recordResponses from autovivifying mcHash keys.  From page to page of
questions it does not matter, but if two questions in the same page have an
unrecognized, type, the second will be processed differently from the first.
2008-12-12 23:33:33 +00:00
Colin Kuskie
574d6cf036 nextQuestions tests.
Add POD, and make sure that answers returned by nextQuestions are safe refs.
2008-12-12 19:27:12 +00:00
Colin Kuskie
5fe0a7cbe2 Add section separator comments between the subroutines.
Add a few checks to getNextSection* so that it won't autovivify array elements
past the end of the survey order array.
2008-12-12 17:03:10 +00:00
Yung Han Khoe
ba24497686 matrix compare screen bugfix 2008-12-12 16:36:19 +00:00
Yung Han Khoe
80d7ac6ae1 matrix bug fixes 2008-12-12 12:20:54 +00:00
Colin Kuskie
98294e4e78 Add tests for nextSectionid, nextSection, currentSection.
Add more POD to ResponseJSON
2008-12-12 00:36:08 +00:00
Colin Kuskie
c60393e44a Tests for createSurveyOrder and shuffle.
POD for several methods.
2008-12-12 00:03:16 +00:00
Colin Kuskie
1c1f01d473 Change ResponseJSON to use a proper mutator for startTime.
Add tests for startTime.
Survey uses the accessor, and no longer needs to manually set startTime.
2008-12-11 19:45:19 +00:00
Yung Han Khoe
040da6f327 added tooltips to Matrix attributes 2008-12-11 14:55:22 +00:00
Colin Kuskie
bb5ced3e0d remove Combo from Thingy, and let it autodetect List type form fields like the dataform does 2008-12-10 17:03:25 +00:00
Graham Knop
b0a2a3971d fixing misuse of pod for commenting out code 2008-12-10 05:46:16 +00:00
Colin Kuskie
08bf6b5147 Flesh out the ResponseJSON test more. Add POD. 2008-12-10 02:25:42 +00:00
Yung Han Khoe
1a67df91bc Making Matrix edit listing screen templatable 2008-12-09 15:17:20 +00:00
Colin Kuskie
415221fb4d Forward port Calendar location field fix in ical. 2008-12-09 04:29:22 +00:00
Yung Han Khoe
77aefb85e6 fixed #9219: Thingy After Save Search This Thing not showing all rows 2008-12-07 17:25:17 +00:00
Yung Han Khoe
8ba4f6ef70 More Matrix bugfixes 2008-12-07 13:10:08 +00:00
Colin Kuskie
931b502666 Update SurveyJSON POD for the new method.
Add legal and header POD for ResponseJSON.
2008-12-06 00:23:17 +00:00
Kaleb Murphy
3671e80bea terminal sections now work correctly 2008-12-05 23:53:11 +00:00
Kaleb Murphy
4d1f311c42 Fixed hasTimeLimit to work with the new storage location of the time limit. 2008-12-05 21:43:15 +00:00
Colin Kuskie
8ea45fe456 Switch to using dclone from Clone::clone due to bugs under
perl 5.10
2008-12-05 04:21:43 +00:00
Colin Kuskie
a50c27de67 add POD, fix a few typos.
Add tests for updateQuestionAnswers
2008-12-04 23:35:40 +00:00
Colin Kuskie
75f6497924 Tests for getEditVars, getEditSectionVars and addAnswersToQuestion.
Add POD.
Fix a bug with setting verbatims in addAnswersToQuestion
2008-12-04 22:01:17 +00:00
Colin Kuskie
24fe2e6dc0 Add tests for getQuestionEditVars.
Refactor out the list of valid question types to make testing easier.
2008-12-04 20:47:42 +00:00
Colin Kuskie
0453f47bc1 Tests for getDragDrop and getAnswerEditVars.
More POD.
2008-12-04 20:18:49 +00:00
Patrick Donelan
71c56e1fcc Survey bug fix - showProgress, showTimeLimit and timeLimit should not be
stored at the response level (they are global to asset instance)
2008-12-04 00:52:45 +00:00
Colin Kuskie
49cbf11ed2 forward porting UserList profile field name bug fix 2008-12-03 22:39:11 +00:00
Yung Han Khoe
6f634a44c2 matrix bugfixes and code improvements 2008-12-03 10:34:07 +00:00
Colin Kuskie
d370772762 Make copy use safe references.
Add tests for remove, and copy.
2008-12-03 04:41:38 +00:00
Graham Knop
706b24bcb6 fix some POD errors 2008-12-03 00:33:07 +00:00
Graham Knop
0957247dbc removing WSClient 2008-12-03 00:32:58 +00:00
Colin Kuskie
a71e494d34 Fix Calendar copy behavior. By default, duplicate will only copy
the Calendar.  duplicateBranch must be called to copy it _and_ its
children.
2008-12-03 00:02:01 +00:00
Colin Kuskie
1fb383ec73 forward porting ems badge viewing permission fix 2008-12-02 19:07:40 +00:00
Kaleb Murphy
5127a307b7 Minor fix. JSON no longer assumes proper utf8, but uses whatever off-brand locale a luser wants to use. 2008-12-02 16:03:23 +00:00
Yung Han Khoe
a4207e7ec5 fixed a bug in Matrix deleteAttribute method 2008-12-02 11:18:02 +00:00
Colin Kuskie
23f8e48f6d Update POD for several methods.
Make getObject clone data for safety and update tests.
Make newObject always alter $address for consistency and update tests.
2008-12-01 17:39:34 +00:00
Yung Han Khoe
e085eff6af fixed UserList 2008-12-01 10:11:24 +00:00
Colin Kuskie
377126da8c Add more POD to SurveyJSON.
Add some basic tests for getObject, update and remove.
2008-11-30 04:30:40 +00:00
Colin Kuskie
020c882fb6 Test abusing references in getObject.
More insertObject testing.
More POD.
2008-11-29 17:29:00 +00:00
Colin Kuskie
fe33c87f13 Add tests for insertObject, and a helper method for summarizing the SurveyJSON data structure.
Add POD for insertObject.  Note that splicing beyond the end of the array will generate
a warning.
2008-11-29 05:32:14 +00:00
Colin Kuskie
59cd001bd8 Add POD and Plain Black legal notice. 2008-11-28 05:01:30 +00:00
Colin Kuskie
27d7a73e53 Internationalize a Thingy template
Add a link from the manage screen back to the default view.
2008-11-27 02:33:08 +00:00
Yung Han Khoe
f0c0c4042d Fixed some Matrix bugs 2008-11-26 17:39:46 +00:00
JT Smith
ee84cc7611 Deprecated WebGUI::Storage::Image. WebGUI::Storage can now do everything
WebGUI::Storage::Image can do.
2008-11-26 16:06:18 +00:00
Kaleb Murphy
06d904eff2 www_deleteResponse should only delete the response from this asset, not all assets 2008-11-25 19:01:32 +00:00
Yung Han Khoe
b0204d51d6 Matrix bugfixes and code cleanup 2008-11-25 16:54:36 +00:00