Skip to content

Commit

Permalink
Fixed 4039: "Exit and Clear Survey" not working
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@9240 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
mennodekker committed Oct 14, 2010
1 parent f287d5a commit f7b5dd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -701,7 +701,7 @@
if (isset($_SESSION['srid']))
{
// delete the response but only if not already completed
$connect->query('delete from '.db_table_name('survey_'.$surveyid).' where srid='.$_SESSION['srid']."and completed='N'");
$connect->query('delete from '.db_table_name('survey_'.$surveyid).' where id='.$_SESSION['srid']." and submitdate IS NULL");
}
session_unset();
session_destroy();
Expand Down

0 comments on commit f7b5dd9

Please sign in to comment.