Survey cleanup and minor bug fixes

Cleaned up edit page tabs
Improved API docs
Added noCreate option to responseId so that it doesn't create unnecessary responses
Added groupToTakeSurvey priv check to takeSurvey
This commit is contained in:
Patrick Donelan 2009-06-09 03:27:06 +00:00
parent 977be654cc
commit 9004e5d711
3 changed files with 137 additions and 91 deletions

View file

@ -214,7 +214,7 @@ SKIP: {
$survey->surveyJSON->answer([0,1,0])->{recordedAnswer} = 'ext_s0q1a0';
$survey->surveyJSON->answer([0,1,0])->{value} = 50; # worth 50 points
my $responseId = $survey->responseId($user->userId);
my $responseId = $survey->responseId( { userId => $user->userId } );
my $rJSON = $survey->responseJSON(undef, $responseId);
$rJSON->recordResponses({