Borox
Member
Hi,
I found a case where the filter used in a URL select the right value in the filter field but the list isn't correctly filtered
Here is a case which is working:
In the url:
?resetfilters=1&emails_site___categorie=informations
In the filter list:
->OK
The list:
->OK
Here is a case which is not working ( same list):
In the URL:
?resetfilters=1&emails_site___categorie=adefinir
In the filter list:
->OK
The list:
->KO
The filter element is correct but the filtering of the list is not.
If I click on the search button the filtering of the list is now OK:
Setup:
The element 'Catégorie' is a databasejoin
Value can take the values 'adefinir', 'information'...
Label can take the values 'A définir', 'Information'...
The difference between a case which is working and one that is not, it's if the Label of the element contains or not a space character.
When Label contains no space, it always works
If both Value and Label have the same value ( both with 'valeur' or with 'nom') it works.
For the moment I'm going to use the same value for Value and Label, but is it a normal behavior?
Thanks
I found a case where the filter used in a URL select the right value in the filter field but the list isn't correctly filtered
Here is a case which is working:
In the url:
?resetfilters=1&emails_site___categorie=informations
In the filter list:
->OK
The list:
->OK
Here is a case which is not working ( same list):
In the URL:
?resetfilters=1&emails_site___categorie=adefinir
In the filter list:
->OK
The list:
->KO
The filter element is correct but the filtering of the list is not.
If I click on the search button the filtering of the list is now OK:
Setup:
The element 'Catégorie' is a databasejoin
Value can take the values 'adefinir', 'information'...
Label can take the values 'A définir', 'Information'...
The difference between a case which is working and one that is not, it's if the Label of the element contains or not a space character.
When Label contains no space, it always works
If both Value and Label have the same value ( both with 'valeur' or with 'nom') it works.
For the moment I'm going to use the same value for Value and Label, but is it a normal behavior?
Thanks