hello there,

I just updated to the latest views-6.x-3.x-dev and now all my cck-nodereference dropdown widgets that use a view for the available options are all limited to 10 items (even though the corresponding views show many more). the same is true for the multiselect widget (http://drupal.org/project/multiselect). with the autocomplete widget it works fine.

I have tried changing the display settings for the corresponding views (number of items displayed, all items, paged, ...) but nothing helped. I also tried using different (created new) views and/or new created nodereference field. But everything without success.

Sorry if this is not the right issue queue and/or type but I just updated views and the problem occurred so I thought this would be the right place ...

Thanks in advance, any ideas welcome!

Cheers,
cossme

Comments

dawehner’s picture

Project: Views (for Drupal 7) » Content Construction Kit (CCK)
Component: Miscellaneous » Views Integration

It's a field provided by cck. So this issue should be set against cck.

cossme’s picture

Title: noderference select shows only the first 10 rows from view » nodereference select shows only the first 10 rows from view
Version: 6.x-3.x-dev » 6.x-2.8

Thanks dereine for moving the post to the correct issue queue - even though I am still thinking it it something that was broken by one of the latest views-6.x.3.x-dev changes because I didn't do a cck update lately.

So to clarify I use

Drupal: 6.20
Views: latest dev version 6.x-3.x-dev (January 5th 2011)
CCK: 6.x-2.8

to reproduce the issue / bug / problem:

- create at least 11 dummy nodes
- create a view
- add 2 fields title and nid
- select "all items" in display section
- no filters (to get at least all 11 dummy nodes)
- verify that the view returns at least all 11 dummy nodes
- create a content type or use built in "page"
- add field of type "Node reference"
- use "Select list" as widget type
- in the "Advanced - Nodes that can be referenced (View)" section select the view created in step 1 as "View used to select the nodes:"

Now go to edit any of the nodes and you see only 10 items in the select list for the created field, even though the view returns 11 items.

Further information:

- I tried all kinds of different configurations for the view, buit the select box only shows 10 items.
- If I use a "Autocomplete text field" as widget instead, all values can be referenced.

Again thank you in advance for any ideas & thoughts!

Cheers,
cossme

cossme’s picture

Version: 6.x-2.8 » 6.x-2.9

further testing:

- update to cck-6.x-2.9 did not help

- downgrading to 6.x-3.0-alpha3 solved the problem, which again makes me believe, that a change in views produced the bug

thommyboy’s picture

just posted a duplicate issue against views.
same problem here. it seems that views 3.x changed quite a lot regarding the setting of number of rows to display, pager and so on because some of my converted views had wrong settings for that after upgrading and it was set to a (default?) of 10 rows/pager so maybe the api-function calling the views results changed and the cck widget does not work properly any more?

mattcasey’s picture

Been looking for a while -- using the regular "by Content Type" works, but a View will only show me one option if I use 'radio' widget, and *no* options when I use the 'select' widget.

Views 6.x-3.0-alpha3 and CCK 6.x-2.9

rp7’s picture

subscribing

raveman’s picture

Here http://drupal.org/node/998494#comment-4011618 there are some workarounds, works with current CCK release.

cossme’s picture

Status: Active » Fixed
StatusFileSize
new882 bytes

Thanks raveman for the hint! Following the suggestions made there i put together a little fix module which serves my needs.

I attached the little helper module, maybe it is of help to anybody. To set it up just install the module and go to administer/settings/cossme_fix_noderef and enter the names of the views that "need to be fixed".

Cheers,
cossme

Status: Fixed » Closed (fixed)

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

adamdicarlo’s picture

Status: Closed (fixed) » Active

@cossme, awesome! I can use your code for now.

But this issue isn't fixed in the module, right? So it shouldn't have been marked fixed.

adamdicarlo’s picture

Category: support » bug

Hmm, maybe I misunderstood, and we're *SURE* this is only a Views bug and not at all a CCK bug, but until then this should be marked as a bug. I'd like the maintainers to weigh in.

travist’s picture

I was having the same problem. The way Views 3 handles items per page is a little different, so if you change the API call to views to use the base api, this will fix this problem

Here is the patch.

travist’s picture

Status: Active » Needs review
travist’s picture

Use this patch instead... it is reverse compatible.

travist’s picture

Status: Needs review » Closed (duplicate)

This is a duplicate of #998494: Node Reference field always displaying 10 results when using the Advanced View option. [views-6.x-3.x]. Except his fix seems to be better, so closing this issue.