Skip to content

Commit

Permalink
feat(slb-146): revert purge of previous states (build error)
Browse files Browse the repository at this point in the history
  • Loading branch information
dspachos committed Apr 12, 2024
1 parent 44fe208 commit c8c8276
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function storeEntityAndFormState($form_id, $form_session_id, $entity_type
// e.g. when user is navigating away from the page.
// Also, this approach ensures that there will be always
// a stored form state in the db, in case we need to restore.
$this->purgeAutosavedEntityState($entity_type_id, $entity_id, NULL, $form_id, $langcode, $uid);
// $this->purgeAutosavedEntityState($entity_type_id, $entity_id, NULL, $form_id, $langcode, $uid);
// Now, enter the new values.
$this->connection->insert(static::AUTOSAVE_ENTITY_FORM_TABLE)
->fields([
Expand Down Expand Up @@ -169,9 +169,10 @@ public function getFormState($form_id, $entity_type_id, $entity_id, $langcode, $
->orderBy('timestamp', 'DESC')
->condition('form_id', $form_id);

if (isset($form_session_id)) {
$query->condition('form_session_id', $form_session_id);
}
// Use this for future restore state.
/* if (isset($form_session_id)) {
$query->condition('form_session_id', $form_session_id);
} */

$query->condition('entity_type_id', $entity_type_id)
->condition('entity_id', $entity_id)
Expand Down

0 comments on commit c8c8276

Please sign in to comment.