Explorar o código

#655 : Désactiver cache de page si affichage du formulaire de filtrage des formations

Yves Chedemois %!s(int64=13) %!d(string=hai) anos
pai
achega
305c2e72cf
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      fgcf.module

+ 3 - 0
fgcf.module

@@ -456,6 +456,9 @@ function fgcf_mail($key, &$message, $params) {
  * @return array
  */
 function fgcf_filter_form($form_state, $post = NULL) {
+  // The form depends on session data, so we need to disable page caching on
+  // pages displaying the form.
+  $GLOBALS['conf']['cache'] = FALSE;
 
   $form['filtre'] = array(
     '#title' => t('Filtrer les formations'),