Skip to content

Commit

Permalink
Fixed bug #902: Dataentry fails if adminlang is not in the by the sur…
Browse files Browse the repository at this point in the history
…vey languages list

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/phpsurveyor@2863 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Thibault Le Meur committed May 7, 2007
1 parent 6976a6d commit bcd1f2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions admin/dataentry.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
$actsurresult = $connect->Execute($actsurquery) or die($connect->ErrorMsg());
$actsurrows = $actsurresult->FetchRow();

if($actsurrows['browse_response']){
if($actsurrows['browse_response'])
{

$surveyoptions = browsemenubar();
if (!$database_exists)
Expand Down Expand Up @@ -85,7 +86,7 @@
return;
}

if ($subaction == "edit" || $subaction == "" || $subaction == "editsaved")
if ($subaction == "edit" || $subaction == "" || $subaction == "editsaved" || $subaction == "insert")
{
$language = GetBaseLanguageFromSurveyID($surveyid);
}
Expand Down Expand Up @@ -221,6 +222,7 @@
".db_table_name("questions").".language = '{$language}' AND ".db_table_name("answers").".language = '{$language}' AND
".db_table_name("questions").".qid={$irow['qid']}
AND ".db_table_name("questions").".sid=$surveyid ORDER BY ".db_table_name("answers").".sortorder, ".db_table_name("answers").".answer";
echo "TIBO: $i2query";
$i2result = db_execute_assoc($i2query);
while ($i2row = $i2result->FetchRow())
{
Expand Down

0 comments on commit bcd1f2e

Please sign in to comment.