Skip to content

Commit

Permalink
Fixed issue #4457: When copying question, answer options are not copied
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8901 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Jul 5, 2010
1 parent 8b695df commit 530a42b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/database.php
Expand Up @@ -781,9 +781,9 @@ function get_max_question_order($gid)
while ($qr1 = $r1->FetchRow())
{
$qr1 = array_map('db_quote', $qr1);
$i1 = "INSERT INTO {$dbprefix}answers (qid, code, answer, default_value, sortorder, language) "
$i1 = "INSERT INTO {$dbprefix}answers (qid, code, answer, sortorder, language) "
. "VALUES ('$newqid', '{$qr1['code']}', "
. "'{$qr1['answer']}', '{$qr1['default_value']}', "
. "'{$qr1['answer']}', "
. "'{$qr1['sortorder']}', '{$qr1['language']}')";
$ir1 = $connect->Execute($i1); // Checked

Expand Down

0 comments on commit 530a42b

Please sign in to comment.