Skip to content

Commit

Permalink
Merge pull request #167 from bolt/fix/save-session-ajax-forms
Browse files Browse the repository at this point in the history
Save form compiler to session for ajax forms
  • Loading branch information
rossriley authored Jul 31, 2017
2 parents 778f1d6 + 1371b4f commit 9313d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Twig/Extension/BoltFormsRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function twigBoltForms(
;

// Save to session for AJAX requests
if ($this->requestStack->getCurrentRequest()->isXmlHttpRequest()) {
if ($loadAjax) {
$this->session->set('boltforms_compiler_' . $formName, $formContext);
}

Expand Down

0 comments on commit 9313d00

Please sign in to comment.