Fields select are is not stored

More
12 years 8 months ago - 12 years 8 months ago #24266 by gruz
When selecting field in the mod_flexicontent module they are not stored.

Here is the reason explained:
[img


Here is the solution:
modules/mod_flexicontent/elements/fields.php
line about 41
Code:
$values = $this->value;
replace with this code:
Code:
$values = array(); $this->value = (array)$this->value; foreach ($this->value as $k=>$v) { if (is_array($v)) { $values[] = $v[0]; } else { $values[]= $v; } }

P.S. I've just added the line above.
And another place for the same trick is
modules/mod_flexicontent/helper.php

Line about 546 after code
Code:
$relitems_fields = $params->get('relitems_fields', array()); $relitems_fields = (!is_array($relitems_fields)) ? array($relitems_fields) : $relitems_fields;
this code should be added:
Code:
$relitems_fields_temp = array(); foreach ($relitems_fields as $k=>$v) { if (is_array($v)) { $relitems_fields_temp[] = $v[0]; } else { $relitems_fields_temp[]= $v; } } $relitems_fields = $relitems_fields_temp; unset($relitems_fields_temp);

This is for a simiral reason for the module FE.

J2.5
FC - 2.0 - Rev 1612 (since 17-00 30.12.2012)
Last edit: 12 years 8 months ago by gruz.

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

More
12 years 8 months ago #24269 by micker
impressive i send it

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.

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