Skip Navigation

[Resolved] filters do not work anymore in many-to-many relationships after update

This thread is resolved. Here is a description of the problem and solution.

Problem:

Views filter on custom checkboxes field does not work in Types 3.0 + Veiws 2.6

Solution:

There is an issue with the Checkbox fields that save “0” when they are not set on a post.

Our developers have provide a errata for this:
https://toolset.com/errata/checkboxes-that-save-0-are-interpreted-as-checked-by-views/

Relevant Documentation:

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 16 replies, has 3 voices.

Last updated by fredr 6 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#909321

Thanks for the answer.
I have modified the checkbox configuration and updated all the jobs : the problem remains.

#909711

Thanks for the details, since the fields settings have been changed, I need to export your website setting and test it again, I will feedback if there is anything found

#909780

I have tried these in your website:
1) Dashboard-> Toolset-> Relationships
Migrate the post type relationship
2) Run the errata file in your website:
https://toolset.com/errata/checkboxes-that-save-0-are-interpreted-as-checked-by-views/

The problem still persists in your website:
hidden link

The custom filter does not work as expected, I have install duplicator plugin in your website, and am trying to reproduce the same problem and debug it in my localhost, will update this thread if there is anything found

#909798

I have reset the filters in the problem view:
hidden link
and
hidden link

Please notice, in section "Content Selection", you just need to choose one option "Jobs"

in section "Query Filter", you can setup the post type relationship filter as below:
Select posts in a product_jobs relationship that are a related to the current post in the loop.

Please test again, check if it is fixed or not, thanks

#911673

Hi. Sorry for not answering; I was out of town.
I'm not sure to understand what you did, but thanks a lot; it works perfectly now !