[SOLVED in v3.0.9+] Numeric/currency field formatting Bug

More
8 years 8 months ago - 8 years 8 months ago #57164 by chaaya
Flexicontent Versiosn 3.0.8

When you choose "Text/Numeric" field type, and under View formatting you choose Decimal, then no value is displayed on the front end.

The bug is in: plugins\flexicontent_fields\text\text.php, line 389, and to fix:
Replace:
$value = $value === NULL ? 0 : ' ';
with
$value = $value === NULL ? 0 : $value;
Last edit: 8 years 8 months ago by ggppdk.

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

More
8 years 8 months ago #57168 by ggppdk
Hello

this fix is already in v3.0.9-dev

v3.0.9
- makes using custom types in text field much easier
- parameter MASK/VALIDATION parameter will automatically set parameters:
server-side validation
filter value comparing
- item form MASKED numbers/currency/percetage/etc are stored DB as decimal
(masking is done properly)
- You can use custom PHP code to format output values
- Number formating gets more parameters


Download here:
github.com/FLEXIcontent/flexicontent-cck/releases

See pictures here:
github.com/FLEXIcontent/flexicontent-cck/issues/284


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