Skip to content

Commit

Permalink
Fix issue 13161: Error page when submitting a form which has been sav…
Browse files Browse the repository at this point in the history
…ed for later and then resumed.
  • Loading branch information
lokiahk committed Jan 22, 2018
1 parent ac8d072 commit d078632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/expressions/em_manager_helper.php
Expand Up @@ -5543,9 +5543,9 @@ private function _UpdateValuesInDatabase($finished=false)
$criteria->addCondition('srid=:srid');
$criteria->addCondition('sid=:sid');
$criteria->params = [':srid'=>$_SESSION[$this->sessid]['srid'],':sid'=>$this->sid];
$savedControl = SavedControl::model()->findAll($criteria);
$savedControls = SavedControl::model()->findAll($criteria);

if($savedControl){
foreach ($savedControls as $savedControl) {
$savedControl->delete();
}

Expand Down

0 comments on commit d078632

Please sign in to comment.