Skip to content

Commit

Permalink
Dev Fixed printable survey
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_dev_cs@8300 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Jan 25, 2010
1 parent e812377 commit 77925ba
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 69 deletions.
2 changes: 1 addition & 1 deletion admin/database.php
Expand Up @@ -827,7 +827,7 @@ function get_max_question_order($gid)
for ($scale_id=0;$scale_id<$scalecount;$scale_id++)
{
$maxcount=(int)$_POST['answercount_'.$scale_id];
for ($sortorderid=0;$sortorderid<$maxcount;$sortorderid++)
for ($sortorderid=1;$sortorderid<$maxcount;$sortorderid++)
{
$code=sanitize_paranoid_string($_POST['code_'.$sortorderid.'_'.$scale_id]);
$assessmentvalue=(int) $_POST['assessment_'.$sortorderid.'_'.$scale_id];
Expand Down
6 changes: 3 additions & 3 deletions admin/html.php
Expand Up @@ -1421,12 +1421,12 @@
if ($first)
{
$vasummary .= "<input type='hidden' id='answercount_{$scale_id}' name='answercount_{$scale_id}' value='$anscount' />\n";
$vasummary .= "<input type='hidden' id='lid0' name='lid0' value='{$qrow['lid']}' />\n";
$vasummary .= "<input type='hidden' id='lid1' name='lid1' value='{$qrow['lid1']}' />\n";
}
$vasummary .= "<button id='btnlsbrowser_{$scale_id}' class='btnlsbrowser' type='button'>".$clang->gT('Predefined label sets...')."</button>";

}
}
$vasummary .= "<input type='hidden' id='lid0' name='lid0' value='{$qrow['lid']}' />\n";
$vasummary .= "<input type='hidden' id='lid1' name='lid1' value='{$qrow['lid1']}' />\n";

$position=sprintf("%05d", $position);

Expand Down

0 comments on commit 77925ba

Please sign in to comment.