golfads VIP
Total posts: 216
17 Apr 2014 23:09

Hi,

We just noticed this error (bug) when making some final beta testing of our website:

dollar_field_filter_module

When creating a text field and make it mask to format it as dollar, in the full article, it is displayed correctly, for example, $26, 000, 000 is shown correctly in full article, however, in filter module, it is shown only as $26!

I know that an update of Cobalt was just released few hours ago, however, we are launching our website within few hours, there is a publication that has been published in our local newspaper, it will be very nice if you could please fix this issue guys and make a quick update available so that we can have this small issue fixed before visitors start to come to our website please.

Thanks,

Tomy

Last Modified: 18 Apr 2014


Sergey
Total posts: 13,748
18 Apr 2014 04:53

Open file com_cobalt/library/php/fields/cobaltfield.php and find line 397

if(!preg_match('/^[0-9,\.]*$/', $c[0]) 

And change it to

if(!preg_match('/^[0-9,\.]*$/', $c[0]) && !$this->params->get('params.mask'))

golfads VIP
Total posts: 216
18 Apr 2014 05:46

Thanks Sergey, it works just great, as usual, you are the best.

Thanks,

Tomy

Powered by Cobalt