Made first argument to SurveyJSON contructor $session for consistency
with rest of wg. Also added Params::Validate validation.
This commit is contained in:
parent
76d677ab4f
commit
d00c8661f3
3 changed files with 31 additions and 45 deletions
|
|
@ -493,7 +493,7 @@ is($rJSON->questionsAnswered, 0, 'question was all whitespace, not answered');
|
|||
|
||||
sub buildSurveyJSON {
|
||||
my $session = shift;
|
||||
my $sjson = WebGUI::Asset::Wobject::Survey::SurveyJSON->new(undef, $session->log);
|
||||
my $sjson = WebGUI::Asset::Wobject::Survey::SurveyJSON->new($session);
|
||||
##Build 4 sections. Remembering that one is created by default when you make an empty SurveyJSON object
|
||||
$sjson->newObject([]);
|
||||
$sjson->newObject([]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue