Skip to content

Commit

Permalink
Fixed issue #7070: Error when submitting a questionnaire and using a …
Browse files Browse the repository at this point in the history
…date question with no custom advanced settings
  • Loading branch information
c-schmitz committed Dec 12, 2012
1 parent ae53492 commit 5c86fa8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/helpers/expressions/em_manager_helper.php
Expand Up @@ -2526,7 +2526,7 @@ public function _CreateSubQLevelRelevanceAndValidationEqns($onlyThisQseq=NULL)
$othertext = trim($qattr['other_replace_text']);
}
else {
$othertext = $this->gT('other');
$othertext = $this->gT('Other:');
}
$qtips['other_comment_mandatory']=sprintf($this->gT("If you choose '%s' please also specify your choice in the accompanying text field."),$othertext);
}
Expand Down Expand Up @@ -7500,6 +7500,9 @@ static function ProcessCurrentResponses()
else
{
$aAttributes=$LEM->getQuestionAttributesForEM($LEM->sid, $qid,$_SESSION['LEMlang']);
if (!isset($aAttributes[$qid])) {
$aAttributes[$qid]=array();
}
$aDateFormatData=getDateFormatDataForQID($aAttributes[$qid],$LEM->surveyOptions);
$oDateTimeConverter = new Date_Time_Converter($value, $aDateFormatData['phpdate']);
$value=$oDateTimeConverter->convert("Y-m-d H:i");
Expand Down

0 comments on commit 5c86fa8

Please sign in to comment.