collectiveaccess/providence — pull request #77 by naeemmuhammad (2014-01-10 14:10:47+00:00)
Title: Updating measurements with 'comma' issue

While editing/updating object measurements with comma the decimal part
of the value is lost;
For example when we try to update object height to 2,3 cm, the value is converted into 2.0 cm and stored in the database.

This is caused when caConvertLocaleSpecificFloat returns string value instead of a floating number value, to function LengthAttributeValue::parseValue.
The caConvertLocaleSpecificFloat function converts a string value into float only if function_exists("NumberFormatter") returns true. In case of false, it returns with a string value;

In this fix we check if "NumberFormatter" function exists(function_exists("NumberFormatter")) one level higher. We call caConvertLocaleSpecificFloat only if the check is positive, otherwise we convert the string value into the corresponding float value.