I have a node queue which I am using a view to display.

I have 6 items in the queue, yet for some reason a simple view created to filter by nodes in the queue ends up listing some of the nodes twice.

I have figured out what causes this problem, and it seems like it must be a bug --

I have many nodes with similar names. When I start typing into the box on the queue page to add a node, many choices come up. I select the correct node in the list (which shows the correct nid), and hit enter. I get the error:

"This matches too many nodes" - even though I've selected a specific node/nid.

Here's the important part: This only happens for nodes with apostrophes in the title. All other work fine. These are the only nodes that show up twice in the view, as well.

CommentFileSizeAuthor
#14 same user more than once.png40.5 KBdrupallogic

Comments

jrefano’s picture

Wait a second, turns out it was a coincidence -- the apostrophes do not seem to be the culprit. Issue still stands.

jrefano’s picture

Priority: Critical » Normal
Status: Active » Closed (fixed)

I just deleted my view and created it from scratch and the issue disappeared. I think my view must have been corrupted somehow.

Steve Dondley’s picture

Version: 5.x-2.2 » 7.x-2.x-dev
Status: Closed (fixed) » Active

This issue has come and gone for me. From what I've been able to determine, it only occurs if I try to use the sort criteria field in the view, the issue occurs. I've tried correcting it by using the "Distinct" option, but that does not solve the problem.

I find the view works OK without using the sort criteria option, though.

jrefano’s picture

I found that the culprit was indeed the sort criteria. Using that feature at all results in the original issue.

ezra-g’s picture

It seems like you're reporting two different errors here. First that you have a view that is showing the same node multiple times and second that Nodequeue doesn't allow you to add an item to a queue using the "Select title to add" field.

In my testing, I was successfully able to add nodes to a queue even if they had identical titles. The only time I got the "matches too many nodes" error message was when I didn't click the autocompleted "node title [nid]" text and just submitted the form without a nid value in the text field. Can you confirm that this is what happened? If that's not the cause of this problem, could you tell me the nid, type and title of the nodes that lead to the error?

Furthermore, I was able to successfully add the same node to a queue multiple times and save the queue. We should prevent the same node from being added to a queue multiple times by not allowing these values to be saved in the database and possibly with validation that prevents them from even being entered on this form. The former should be addressed in the refactoring at #234004: Drag and drop node ordering.

It seems possible that the reason you had multiple nodes showing up in a queue is that you were able to erroneously add multiple instances of them to the queue. Is that the case?

Thanks!

merlinofchaos’s picture

Note that the ability to have nodes in a queue multiple times was a requested feature. I'm not entirely sure it was a good idea, and the requester didn't end up using the module anyway.

ezra-g’s picture

[edit]
That's good to know. I think it could make sense to have the same node appear in a queue multiple times if there is demand for this feature. A search does not turn up a existing feature request. I thought about whether that would be a good feature and one immediate problem is how the add/remove ajax links would behave for a node that is in a queue multiple times.

ezra-g’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Changing status.

ezra-g’s picture

Status: Postponed (maintainer needs more info) » Active
scottrigby’s picture

@ezra-g,
We just experienced this after upgrading to D6-14. It's the first time I've seen it, so i don't really have much info about what else could have caused this, except noticed this happened immediately after the upgrade.

I was a few versions behind, so i just upgraded to nodequeue-6-2--4, and the same thing occurs. using views-6-2--6... would any other info be useful? Or, any tips where i can look for possible debugging?

@merlinofchaos, re #6, has this feature been removed in views-6-2? if so we can just upgrade. If not, i could help write a patch to remove it (if it's still a feature that the requester isn't using) - do you think that would be a good idea?

scottrigby’s picture

Update: this was not the problem in our case (weirdly it was a domain access module issue), so i take back what i said about a patch ;)
I did however notice a duplicate position error, but i see that's from #234004: Drag and drop node ordering so i'll take it up there if i see that again.

ezra-g’s picture

Status: Active » Postponed (maintainer needs more info)

Can someone post an export of a view that has this problem?

ezra-g’s picture

Status: Postponed (maintainer needs more info) » Fixed

Update: this was not the problem in our case (weirdly it was a domain access module issue), so i take back what i said about a patch ;)

After re-reading this thread, looks like nobody is still reporting this problem.

drupallogic’s picture

StatusFileSize
new40.5 KB

I was looking for something smilar and found this node. I'm using views+content profile modules and have a "search user" view and view gives same user a few times. I'm not sure if this is a views issue or a content profile module issue though.

pls have a look at to atta. picture.

Status: Fixed » Closed (fixed)

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

les lim’s picture

Status: Closed (fixed) » Closed (duplicate)

I just came across the same behavior, which for me is a result of a node being listed multiple times in a single queue. That makes it a duplicate of #593468: adding the same node more than once to a queue causes bad behavior.