Creation of money cck field successful, able to create and retrieve data through edit mode. No results are being display upon the public view.

Installation of the latest builds of Drupal 5.3, CCK and Currency module. Additional fields such as date and various text and/or integers fields behave properly.

Comments

wim leers’s picture

Category: bug » support
Priority: Critical » Normal

Considering you're a new Drupal user, this is probably due to human error. Please don't set an issue to the bug report category unless you're absolutely certain ;)

This is either due to an incorrectly configured field or cached pages, probably. Create another Money field and try that one. If that doesn't work either, provide me with a login for your site.

miche’s picture

Hello,
I am experiencing the same issue. Using Drupal 5.3, Money 5.x-1.3, Currency 5.x-1.x-dev (October07).

The content does not display on node view.

I dumped the node object:

[field_product_price] => Array
(
[0] => Array
(
[amount] => 700
[currency] => USD
[view] =>
)

)

Please assist.

ebeyrent’s picture

It should be noted that the field displays just fine when building views to display the data. It's when viewing node/xxxx that the field does not show.

wim leers’s picture

I'd swear it used to work. Could somebody install version 1.0 on a test site to verify that it never worked?

miche’s picture

Version 1.0 displays the money field correctly at the node level. Although using views, it displays a comma instead of a decimal.

wim leers’s picture

Assigned: Unassigned » wim leers
Status: Active » Fixed

Thanks. I've found the cause now.

In the initial versions, a formatter with the internal id "default" existed. But since the previous release, I've renamed them all to make sense (since there are 6 formatters now). So now, CCK doesn't pick any of them as the default. You simply have to go to admin/content/types/<your conten type>/display (so the "Display fields" tab of a content type), choose your desired selector, and then save the form.

So this is a CCK bug: if no formatter with the name "default" exists, no formatter is used. I'll report this in the CCK issue queue.

wim leers’s picture

Reported in the CCK issue queue: issue #199700.

miche’s picture

Thank you Wim. It appears by selecting a new display and saving has allowed the price to show.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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