Problem filtering search with custom elements

More
11 years 7 months ago #35809 by ggppdk
Hello, found and fixed, to test fix:

Replace:
(in file components/classescom_flexicontent.fields.php)
Code:
$sql_mode = $filter_customize_options==2;
with
Code:
$sql_mode = $filter_customize_options==1;


-- 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 7 months ago #36089 by jackdaniels
After applying the fix, I no longer get the error FLEXI_FIELD_INVALID_QUERY when I set Custom Retrieval of Filter Values to "Use custom element" but my list is still empty tho...

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

More
11 years 7 months ago #36091 by ggppdk
Hello,

the bug was that parameter was reversed, so now the query will get executed,

Just note that this query is bad performance:

SELECT value, value as text FROM #__flexicontent_fields_item_relations WHERE field_id='15' AND value != '' GROUP BY value

It groups without need for grouping !!
Appropriate is:

SELECT DISTINCT value, value as text FROM #__flexicontent_fields_item_relations WHERE field_id='15' AND value != ''

(v2.0.2 fixes this in default queries)

About ZERO results ? did you rebuild the index ?
Do you get any errors there?


-- 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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.424 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