Small issue with 'Select List' field type

More
11 years 6 months ago #36186 by SteP
Hi again
I have some field types used to load a url from Joomla menu (to be associated to an image via JRoute function, directly in custom templates).
I have made a simple query to select in backend all the urls I need (queries are like this: SELECT link AS value, title AS text FROM #__menu WHERE (parent_id='40' OR parent_id='41' OR parent_id='43' OR parent_id='44' OR parent_id='88' OR parent_id='367') ORDER BY title).
So I select the url, and then JRoute it in template.
But now when publishing the field I get an error:

Fatal error: Cannot break/continue 1 level in D:\htdocs\websitedir\plugins\flexicontent_fields\select\select.php on line 211.

I'm using latest FC v2.0.2_J25_r1676 version. This kind of field was working correctly in my old Joomla 1.5 /FC 1.5.x website.
I don't know if it was working in previous FC 2.x versions, due to the fact that I disabled them up today.
I can't understand if I'm doing mistakes somewhere, or if it's a bug.
Could you please find time to check it?
Thank you in advance

_________________________________________
MMC Edizioni - www.mmcedizioni.it
Website Developer & Graphics

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

More
11 years 6 months ago #36188 by ggppdk
Hello,
it is a bug.

please replace the issue giving line (211):
Code:
if ( !$element ) continue;
with:
Code:
if ( !$element ) return '';
will commit fix for v2.0.2

Regards


-- 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 6 months ago #36190 by SteP
THANK ALOT, one more time :)

_________________________________________
MMC Edizioni - www.mmcedizioni.it
Website Developer & Graphics

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

More
11 years 6 months ago #36192 by ggppdk
Thanks for report,
this was a bug

NOTE: same fix (same line , not of course at 211 but same line) must be replaced in radio and radioimage fields


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