Download & Extend

CCK Computed fields with decimals not working

Project:CCK Facets
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hi,

I'm still digging into this, but it appears that if you have a CCK computed filed that returns (and saves into the db) a number with a decimal, that it's not working as a facet.

For example, I have a computed field that sets $/watt (cost per watt). It saves the calculation as a float datatype with 2 decimal places that looks like 2.45.

The facets will show up in the guided search, but clicking on them returns no results.

The url of a facet looks like:

http://mysite/filter/results/field_cost_per_watt%3A%223.21%22

(3.21 is the computed field).

I thought the problem might be the period in the url, so I tried:

replacing the 3.21 with 3%2E21 but that didn't work.

I'll report back if I find anything -- but any input while I'm at it would be greatly appreciated...

Thanks,
Michael

Comments

#1

Status:active» fixed

This can be fixed by setting the data type of the cck computed field to "text".

#2

Project:Faceted Search» CCK Facets
Version:6.x-1.x-dev» 6.x-1.x-dev
Component:Content Type Facet» Code

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.