Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
SondagesPro-LimeSurvey-plugin
recomputeExpression
Commits
dc2c1dc0
Commit
dc2c1dc0
authored
Aug 12, 2015
by
Denis Chenu
Browse files
Merge branch 'master' into 'master'
parents
3dd6f6ae
f6b80259
Changes
1
Hide whitespace changes
Inline
Side-by-side
recomputeExpression.php
View file @
dc2c1dc0
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment