[SOLVED] Importing CSV featuring values of 0

More
9 years 10 months ago #51544 by agata
Good morning,
The version is 2.2.0 stable
Here's my test CSV.
Best,
A
Attachments:

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

More
9 years 9 months ago #51801 by agata
Hello in the New Year,
any news on this bug?
Agata

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

More
9 years 9 months ago #51825 by ggppdk
Hello

some field would have bad check or deliberately not allow zero, but text field allows


are you sure that field is of type "text" is it some other type ?




please try v2.2.1 rc1 (has no new bugs compared to v2.2.0 only bug-fixes, you could also try in duplicate web-site)


-- 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
9 years 9 months ago #51829 by agata
Hello,
Yes the fields are text. I installed the RC version and 0 is not being imported either.
Best,
Agata
Attachments:

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

More
9 years 9 months ago #51847 by ggppdk
Hello

this is a fix for the issue, you may apply/test it in your installed version:

edit file:
administrator/components/com_flexicontent/controllers/import.php

replace:
Code:
$vals = $field_data ? preg_split("/[\s]*%%[\s]*/", $field_data) : array();

with:
Code:
$vals = strlen($field_data) ? preg_split("/[\s]*%%[\s]*/", $field_data) : array();


-- 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
9 years 9 months ago #51851 by agata
Hi, I found two instances of that code and replaced them both and it looks like it did the trick! If I was supposed to only replace one of them, let me know. Thanks a lot for your assistance!
Best,
Agata

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

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