Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #10162: new visit on a survey with token deletes last entry
- Loading branch information
2461a56
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strange ?
LimeExpressionManager::SetDirtyFlag
set$_SESSION['LEMdirtyFlag']
and if$_SESSION['LEMdirtyFlag']
singleton is reloaded, maybe we need to kill LEMsingleton before create it again ?There are surely somewhere where LEMsingleton is taken from session, not from LimeExpressionManager ?
2461a56
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LEMsingleton is used only in LimeExpressionManager, it has a minimal impact.
LEMsingleton is taken from session only in LEM's singleton function.
2461a56
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, OK, with this but, maybe it's better to reset $_SESSION['LEMsingleton'] direcftly in ExpressionManager : here
LimeSurvey/application/helpers/expressions/em_manager_helper.php
Line 685 in 2461a56
LimeSurvey/application/helpers/expressions/em_manager_helper.php
Line 730 in 2461a56
Because your fix mean there are somewhere we get instance from session on not from LimeExpressionManager :)