Skip to content

Commit

Permalink
Fixed issue: Assessments values not being properly converted on upgra…
Browse files Browse the repository at this point in the history
…de from 1.87

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@9091 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Aug 24, 2010
1 parent 07d5343 commit f428560
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion admin/update/upgrade-mssql.php
Expand Up @@ -624,7 +624,7 @@ function upgrade_tables143()
$labelresult = db_execute_assoc($labelquery);
while ( $lrow = $labelresult->FetchRow() )
{
modify_database("","INSERT INTO {$dbprefix}answers (qid, code, answer, sortorder, language, assessment_value) VALUES ({$row['qid']},".db_quoteall($lrow['code']).",".db_quoteall($lrow['title']).",{$lrow['sortorder']},".db_quoteall($lrow['language']).",{$lrow['assessment_value']}"); echo $modifyoutput; flush();
modify_database("","INSERT INTO {$dbprefix}answers (qid, code, answer, sortorder, language, assessment_value) VALUES ({$row['qid']},".db_quoteall($lrow['code']).",".db_quoteall($lrow['title']).",{$lrow['sortorder']},".db_quoteall($lrow['language']).",{$lrow['assessment_value']})"); echo $modifyoutput; flush();
//$labelids[]
}
if ($row['type']=='1')
Expand Down
2 changes: 1 addition & 1 deletion admin/update/upgrade-mssqlnative.php
Expand Up @@ -624,7 +624,7 @@ function upgrade_tables143()
$labelresult = db_execute_assoc($labelquery);
while ( $lrow = $labelresult->FetchRow() )
{
modify_database("","INSERT INTO {$dbprefix}answers (qid, code, answer, sortorder, language, assessment_value) VALUES ({$row['qid']},".db_quoteall($lrow['code']).",".db_quoteall($lrow['title']).",{$lrow['sortorder']},".db_quoteall($lrow['language']).",{$lrow['assessment_value']}"); echo $modifyoutput; flush();
modify_database("","INSERT INTO {$dbprefix}answers (qid, code, answer, sortorder, language, assessment_value) VALUES ({$row['qid']},".db_quoteall($lrow['code']).",".db_quoteall($lrow['title']).",{$lrow['sortorder']},".db_quoteall($lrow['language']).",{$lrow['assessment_value']})"); echo $modifyoutput; flush();
//$labelids[]
}
if ($row['type']=='1')
Expand Down
4 changes: 2 additions & 2 deletions admin/update/upgrade-mysql.php
Expand Up @@ -644,7 +644,7 @@ function upgrade_tables143()
$labelresult = db_execute_assoc($labelquery);
while ( $lrow = $labelresult->FetchRow() )
{
modify_database("","INSERT INTO {$dbprefix}answers (qid, code, answer, sortorder, language, assessment_value) VALUES ({$row['qid']},".db_quoteall($lrow['code']).",".db_quoteall($lrow['title']).",{$lrow['sortorder']},".db_quoteall($lrow['language']).",{$lrow['assessment_value']}"); echo $modifyoutput; flush();
modify_database("","INSERT INTO {$dbprefix}answers (qid, code, answer, sortorder, language, assessment_value) VALUES ({$row['qid']},".db_quoteall($lrow['code']).",".db_quoteall($lrow['title']).",{$lrow['sortorder']},".db_quoteall($lrow['language']).",{$lrow['assessment_value']})"); echo $modifyoutput; flush();
//$labelids[]
}
if ($row['type']=='1')
Expand Down Expand Up @@ -724,4 +724,4 @@ function upgrade_tables143()
closedir($handle);
}

}
}
2 changes: 1 addition & 1 deletion admin/update/upgrade-postgres.php
Expand Up @@ -381,7 +381,7 @@ function upgrade_tables143()
$labelresult = db_execute_assoc($labelquery);
while ( $lrow = $labelresult->FetchRow() )
{
modify_database("","INSERT INTO {$dbprefix}answers (qid, code, answer, sortorder, language, assessment_value) VALUES ({$row['qid']},".db_quoteall($lrow['code']).",".db_quoteall($lrow['title']).",{$lrow['sortorder']},".db_quoteall($lrow['language']).",{$lrow['assessment_value']}"); echo $modifyoutput; flush();
modify_database("","INSERT INTO {$dbprefix}answers (qid, code, answer, sortorder, language, assessment_value) VALUES ({$row['qid']},".db_quoteall($lrow['code']).",".db_quoteall($lrow['title']).",{$lrow['sortorder']},".db_quoteall($lrow['language']).",{$lrow['assessment_value']})"); echo $modifyoutput; flush();
//$labelids[]
}
if ($row['type']=='1')
Expand Down

0 comments on commit f428560

Please sign in to comment.