fix bug in upgrade script. Survey sub-tables use Survey_id, not assetId.
This commit is contained in:
parent
9780109361
commit
8050c40057
1 changed files with 2 additions and 1 deletions
|
|
@ -41,7 +41,8 @@ sub fixSurvey{
|
|||
my $survey = WebGUI::Asset->new($session, $assetId, 'WebGUI::Asset::Wobject::Survey');
|
||||
my $i18n = WebGUI::International->new($session, 'Asset_Survey');
|
||||
my $noneLabel = $i18n->get(107);
|
||||
my ($defaultSectionId) = $session->db->quickArray("select Survey_sectionId from Survey_section where assetId=? and sectionName=?", [$assetId,$noneLabel]);
|
||||
my $surveyId = $survey->get('Survey_id');
|
||||
my ($defaultSectionId) = $session->db->quickArray("select Survey_sectionId from Survey_section where Survey_id=? and sectionName=?", [$surveyId,$noneLabel]);
|
||||
$survey->update({defaultSectionId => $defaultSectionId});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue