From f330bbc565e0dcfc0dc6e5984dceef2f989bbd64 Mon Sep 17 00:00:00 2001 From: Paul Pound Date: Mon, 10 Jul 2023 14:44:01 -0300 Subject: [PATCH] limit ILL form caches to session --- src/Form/RoblibIllLoanForm.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Form/RoblibIllLoanForm.php b/src/Form/RoblibIllLoanForm.php index 29feeed..8e5e02a 100644 --- a/src/Form/RoblibIllLoanForm.php +++ b/src/Form/RoblibIllLoanForm.php @@ -145,6 +145,7 @@ class RoblibIllLoanForm extends FormBase { $config = \Drupal::config('upei_roblib_ill.settings'); $form['#prefix'] = '
'; $form['#suffix'] = '
* = Required Field
'; + $form['#cache']['contexts'][] = 'session'; $type = upei_roblib_ill_get_request_variable('genre'); $genre = empty($type) ? 'article' : $type; $form['Genre'] = [ @@ -361,6 +362,7 @@ Freedom of Information and Protection of Privacy Act and will be protected and providing library service. Direct any questions about this collection to Health Sciences and Scholarly Communications Librarian at ill@upei.ca, 550 University Ave, Charlottetown PE , 902-566-0453.'; + $form['#cache']['contexts'][] = 'session'; $form['FirstName'] = [ '#type' => 'textfield', '#title' => t('Your First Name'),