$this->session->set($sessionParam, $value); | $this->session->set($sessionParam, $value); | ||||
return $value; | return $value; | ||||
} | } | ||||
// pas de valeur et le form est envoyé, on supprimer le filtre correspondant | |||||
elseif($formField->isSubmitted()) { | |||||
$this->session->remove($sessionParam); | |||||
} | |||||
//action reset | //action reset | ||||
if ($filtersForm->get('reset')->getData() == 'clearAll') { | if ($filtersForm->get('reset')->getData() == 'clearAll') { |