Commit
…public registration
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -233,17 +233,21 @@ | |
if ($thissurvey['active'] == "Y" && isset($_POST['saveall'])) | ||
{ | ||
// must do this here to process the POSTed values | ||
$moveResult = LimeExpressionManager::JumpTo($_SESSION['step'],false); // by jumping to current step, saves data so far | ||
//$moveResult = LimeExpressionManager::JumpTo($_SESSION['step'],false); // by jumping to current step, saves data so far | ||
|
||
//showsaveform(); // generates a form and exits, awaiting input | ||
if($thissurvey['tokenanswerspersistence'] != 'Y' || !tableExists('tokens_'.$surveyid)) | ||
{ | ||
$moveResult = LimeExpressionManager::JumpTo($_SESSION['step'],false); // by jumping to current step, saves data so far | ||
showsaveform(); | ||
} | ||
else | ||
{ | ||
$flashmessage = savedsilent(); | ||
|
||
$moveResult = LimeExpressionManager::JumpTo($_SESSION['step'],false,true,false,false,true); // by jumping to current step, saves data so far | ||
if (!is_null($moveResult)) | ||
{ | ||
$flashmessage = $clang->gT('Your survey was successfully saved.'); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
sachdeva-shubham
Author
Contributor
|
||
} | ||
} | ||
} | ||
|
||
|
6 comments
on commit 1296664
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.
magicklo - looks good except for line 249 of group.php
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.
The final fix hasn't been committed to master
(see last note about removing
if (!is_null($moveResult))
{
$flashmessage = savedcontrol();
}
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.
Needs to be ported to Yii?
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.
Issue does not exist in Yii.
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.
Did the last missing fix on master.
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.
magicklo-
Looking at this code, the function _UpdateValuesInDatabase() has a new argument, $setSubmitDate, but it isn't used anywhere in the function.
What is it supposed to do?
I vaguely recollect it is supposed to set the submit date even if the survey is not finished, but I can't find reference to it elsewhere in the code or prior commits.
I think you want this for this line instead: