Skip to content

Commit

Permalink
Fixed issue #4885: When editing a response with a date question conta…
Browse files Browse the repository at this point in the history
…ining an empty responses the date field is filled with the value 30.11.1999

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@9720 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Jan 26, 2011
1 parent 073e93d commit 0435e36
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions admin/dataentry.php
Expand Up @@ -613,8 +613,12 @@
}
break;
case "D": //DATE
$datetimeobj = new Date_Time_Converter($idrow[$fname['fieldname']] , "Y-m-d H:i:s");
$thisdate=$datetimeobj->convert($dateformatdetails['phpdate']);
$thisdate='';
if ($idrow[$fname['fieldname']]!='')
{
$datetimeobj = new Date_Time_Converter($idrow[$fname['fieldname']] , "Y-m-d H:i:s");
$thisdate=$datetimeobj->convert($dateformatdetails['phpdate']);
}
$dataentryoutput .= "\t<input type='text' class='popupdate' size='12' name='{$fname['fieldname']}' value='{$thisdate}' />\n";
break;
case "G": //GENDER drop-down list
Expand Down

0 comments on commit 0435e36

Please sign in to comment.