Skip to content

Commit

Permalink
Fixed issue: Cannot load previously saved response to resume, instead…
Browse files Browse the repository at this point in the history
… the message "There is no matching saved response" is shown after entering identifier and password
  • Loading branch information
c-schmitz committed Aug 16, 2022
1 parent 08f0a8f commit 947a078
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application/models/SurveyDynamic.php
Expand Up @@ -88,12 +88,12 @@ public function relations()
return array(
'survey' => array(self::HAS_ONE, 'Survey', array(), 'condition' => ('sid = ' . self::$sid)),
'tokens' => array(self::HAS_ONE, 'TokenDynamic', array('token' => 'token')),
'saved_control' => array(self::HAS_ONE, 'SavedControl', array('srid' => 'id'))
'saved_control' => array(self::HAS_ONE, 'SavedControl', array('srid' => 'id'), 'condition' => ('sid = ' . self::$sid))
);
} else {
return array(
'saved_control' => array(self::HAS_ONE, 'SavedControl', array('srid' => 'id'))
);
return array(
'saved_control' => array(self::HAS_ONE, 'SavedControl', array('srid' => 'id'), 'condition' => ('sid = ' . self::$sid))
);
}
}

Expand Down

0 comments on commit 947a078

Please sign in to comment.