Commit 2cd7967e authored by Denis Chenu's avatar Denis Chenu
Browse files

Merge branch 'master' into 'master'

Fix error in line 136 + save values as values instead of wrapping in pretty print span tags

Hi Denis,

I wanted to use your great plugin and noticed some minor issues. I applied these changes and it seems to work fine for me. Please review and merge if you agree.

Menno Dekker (Yes it's me :))

See merge request !1
parents 3dd6f6ae f6b80259
......@@ -132,10 +132,11 @@
}
elseif($bDoNext && $this->bIsAdmin)
{
$oResponse=SurveyDynamic::model($iSurveyId)->find(
'select'=>'id',
'condition'=>'submitdate IS NOT NULL',
'order'=>'id',
$oResponse=SurveyDynamic::model($iSurveyId)->find(
array(
'condition'=>'submitdate IS NOT NULL',
'order'=>'id'
)
);
if(!$oResponse)
$this->sMessage="No submited response";
......@@ -230,7 +231,7 @@
{
//($string, $questionNum=NULL, $replacementFields=array(), $debug=false, $numRecursionLevels=1, $whichPrettyPrintIteration=1, $noReplacements=false, $timeit=true, $staticReplacement=false)
$oldVal=$oResponse->$column;
$newVal=$oResponse->$column=LimeExpressionManager::ProcessString($aFieldMap[$column]['question']);
$newVal=$oResponse->$column=LimeExpressionManager::ProcessString($aFieldMap[$column]['question'], null, array(), false, 1, 0, false, false, true);
if($oldVal!=$newVal && ($oldVal && $newVal))
{
$updatedValues['old'][$sColumnName]=$oldVal;
......@@ -284,4 +285,4 @@
die();
}
}
?>
?>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment