Skip to content

Commit

Permalink
Fixed issue: Manually adding subquestions did not work correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
markusfluer committed Jul 26, 2016
1 parent ca224e9 commit b65a45e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application/controllers/admin/questions.php
Expand Up @@ -920,8 +920,9 @@ public function getSubquestionRow( $surveyid, $gid, $qid, $codes, $language, $fi
$oldCode = false;

//Capture "true" and "false" as strings
$first = ($first == "false" ? false : true);

if(is_string($first)){
$first = ($first == "false" ? false : true);
}
// We get the numerical part of each code and we store them in Arrays
// One array is to store the pure numerical values (so we can search in it for the greates value, and increment it)
// Another array is to store the string values (so we keep all the prefixed "0")
Expand Down

0 comments on commit b65a45e

Please sign in to comment.