If you are using views to create a view and have fields with multiple values, you will get duplicate entries in your views table, even after adding Node:Distinct to your view. As far as I know there is no way yet to combine them into one line, so that is something we have to live with for now.

However, there is something about the operation of cck that is making the problem worse, and it is fixable. If you select the option to allow multiple values for a field, but do not actually fill more than one value out for some records, cck is creating blanks fields for the empty entries. Then when you go to your view, you will see numerous multiple copies of each record, one for each of those values (even when the values are empty).

It seems like it would make more sense for cck not to create extra fields for empty multiple values. If it did not, it would at least make the problem less annoying, and it doesn't seem like there is any reason to create empty fields for some arbitrary number of additional fields (2 or 3 it looks like).

Comments

jonbob’s picture

Title: Duplication problem with views and multiple value fields » Multiple-value fields create blank database entries
Priority: Normal » Critical
jonbob’s picture

Status: Active » Fixed

This will no longer happen.

Anonymous’s picture

Status: Fixed » Closed (fixed)
tinsmon’s picture

Version: 6.x-2.4 » 6.x-1.x-dev

I don't mean to contradict JonBob, but this exact thing is happening on my site which is Drupal 6.12 and CCK 6.x-2.4. Can someone post the solution?

tinsmon’s picture

Version: 6.x-1.x-dev » 6.x-2.4
Status: Closed (fixed) » Active
karens’s picture

Version: 6.x-1.x-dev » 6.x-2.4
Status: Active » Closed (fixed)

This issue is FOUR YEARS OLD!. Nothing in it applies to the current code which has been through at least three top-to-bottom rewrites since this.

Please don't re-open old issues, it just adds noise to the queue.