Skip to content

Commit

Permalink
feat(slb-146): add form session id on get form state condition (optio…
Browse files Browse the repository at this point in the history
…nal)
  • Loading branch information
dspachos committed Apr 12, 2024
1 parent 53b3a50 commit 86e489b
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,9 @@ public function getFormState($form_id, $entity_type_id, $entity_id, $langcode, $
->orderBy('timestamp', 'DESC')
->condition('form_id', $form_id);

// Use this for future restore state.
/* if (isset($form_session_id)) {
$query->condition('form_session_id', $form_session_id);
} */
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 86e489b

Please sign in to comment.