Locked filters not working with range / multi-values

More
11 years 1 month ago - 11 years 1 month ago #40472 by grabit
Hi,

I am using J 2.5.14 and FC 2.1.0 r1778

I have a checkbox field with ID 18 the values are from 1 to 5.

I want to display a list of all contacts with the field 18 checked.

I tried a menu link with permanent filter override here are the results
18##1 %% All contacts with value 1 are displayed
18##1---5 %% nothing is filtered all contacts are displayed
18##1+++2+++3+++4+++5 %% all contacts with value 1 are displayed
18##2+++3+++4+++5 %% all contacts with value 2 are displayed
18##3+++4+++5 %% all contacts with value 3 are displayed
etc

When I try with the universal module only the range is not working, multiple values is OK.

For the range I get this error:
Code:
getItems(): SQL QUERY ERROR: Unknown column 'rel18' in 'where clause' SQL=SELECT i.id FROM hcvas_content AS i JOIN hcvas_flexicontent_items_ext AS ie on ie.item_id = i.id JOIN hcvas_flexicontent_types AS ty on ie.type_id = ty.id JOIN hcvas_flexicontent_cats_item_relations AS rel ON rel.itemid = i.id JOIN hcvas_categories AS c ON c.id = rel.catid JOIN hcvas_categories AS mc ON mc.id = i.catid LEFT JOIN hcvas_flexicontent_fields_item_relations AS f ON f.item_id = i.id AND f.field_id=28 JOIN hcvas_flexicontent_fields_item_relations AS rel18 ON rel18.item_id=i.id AND rel18.field_id = 18 WHERE c.published = 1 AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2013-10-01 08:01:53' ) AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2013-10-01 08:01:53' ) AND ty.access IN (0,1,1) AND mc.access IN (0,1,1) AND i.access IN (0,1,1) AND i.state IN ( 1, -5 ) AND c.id IN (13) AND ie.type_id IN (2) AND (rel18 >=1) AND (rel18 <=5) GROUP BY i.id ORDER BY f.value ASC, i.title LIMIT 0, 20

Any idea?

www.belesco.be/about-belesco/board-of-directors

An Apple a days keeps the doctor away
Last edit: 11 years 1 month ago by grabit.

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #40480 by ggppdk
Hello,

the new version calls these "Locked filters", furthermore the output of your SQL query is that of an older version,

-- maybe you have not updated this site, or during update the flexicontent.fields.php file was not updates ??


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #40503 by grabit
You're right for permanent (my mistake after some searches on the forum).

It is a brand new install.

I had r1775 installed and then r1778 upgraded on a blank website.

So what's wrong?

An Apple a days keeps the doctor away

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #40505 by micker
actived error reporting ..

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #40508 by ggppdk
Hello,

indeed,

when we fixed (the locked filter values feature) in category and in universal module,

we missed one case the value range for universal module (which is still broken)

you can use fix in next public package of v2.1.0 (today)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #40512 by grabit
OK I will wait for next release. But what about the non filtering in the category list?

An Apple a days keeps the doctor away

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.320 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline