File tree 3 files changed +9
-4
lines changed
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -422,3 +422,8 @@ getEditForm now returns a WebGUI::FormBuilder object
422
422
Show Performance Indicators
423
423
==========================
424
424
This setting is removed, as the Plack debug console shows this for us.
425
+
426
+ WebGUI::Asset::Wobject::Survey
427
+ ==========================
428
+ The surveyJSON method conflicted with the new Moose accessor. In WebGUI 8,
429
+ the old surveyJSON is called getSurveyJSON.
Original file line number Diff line number Diff line change @@ -2439,8 +2439,8 @@ Extend the base method to include custom question types added to this Survey.
2439
2439
sub exportAssetData {
2440
2440
my $self = shift ;
2441
2441
my $asset_data = $self -> SUPER::exportAssetData();
2442
- my $questions = $self -> surveyJSON -> questions();
2443
- my $multiple_choice = $self -> surveyJSON -> multipleChoiceTypes();
2442
+ my $questions = $self -> getSurveyJSON -> questions();
2443
+ my $multiple_choice = $self -> getSurveyJSON -> multipleChoiceTypes();
2444
2444
my %question_types = ();
2445
2445
my $get_question = $self -> session-> db-> prepare(' select answers from Survey_questionTypes where questionType=?' );
2446
2446
foreach my $question (@{ $questions }) {
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ my $import_node = WebGUI::Asset->getImportNode($session);
27
27
my $survey = $import_node -> addChild( { className => ' WebGUI::Asset::Wobject::Survey' , } );
28
28
WebGUI::Test-> addToCleanup($survey );
29
29
30
- my $sJSON = $survey -> surveyJSON ;
30
+ my $sJSON = $survey -> getSurveyJSON ;
31
31
32
32
# Load bare-bones survey, containing a single section (S0)
33
33
$sJSON -> update([0], { variable => ' S0' });
@@ -57,7 +57,7 @@ $asset_data->{question_types}->{fingers} = clone $asset_data->{question_types}->
57
57
$survey -> importAssetCollateralData($asset_data );
58
58
59
59
$survey = $survey -> cloneFromDb;
60
- my $multipleChoiceTypes = $survey -> surveyJSON -> multipleChoiceTypes;
60
+ my $multipleChoiceTypes = $survey -> getSurveyJSON -> multipleChoiceTypes;
61
61
62
62
ok exists $multipleChoiceTypes -> {fingers }, ' fingers type imported as package collateral data' ;
63
63
ok exists $multipleChoiceTypes -> {toes }, ' still have toes, too' ;
You can’t perform that action at this time.
0 commit comments