Node: Node ID missing from view arguments

poolino - August 29, 2007 - 14:22
Project:Node comments
Version:5.x-1.0
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

After installing the module I noticed that the option "Node: Node ID" is no longer in the arguments drop down list when adding or modifying a view... is there a specific reason for this? is the module meant to replace this? is there any way to maintain that option with this module enabled? When I disable the module the option appears again.

Thanks

#1

tristan_roddis - January 16, 2008 - 14:36
Status:active» patch (code needs review)

This seems to be because the code in nodecomment_views.inc was creating an array key of 'nid' which was overriding the default provided by the Views module. I changed this to a non-conflicting string (see attached patch file) and it now seems to work again.

Update 2008-01-16: the initial patch caused problems with the view used to display comments. These parameters need to be changed too (included in updated patch file below)

AttachmentSize
nodecomment-views-inc.patch.txt876 bytes

#2

krew - January 6, 2008 - 04:07

This worked, but I to deactivate then reactivate the Node Comments module.

#3

sethcohn - January 14, 2008 - 20:30
Status:patch (code needs review)» patch (reviewed & tested by the community)

Looks good to me.

#4

tristan_roddis - January 16, 2008 - 14:53
Status:patch (reviewed & tested by the community)» patch (code needs review)

Woah there! I just discovered that my initial patch caused problems with viewing nodes (content would get doubled up). This was because I didn't also update the key used for the default views.

I have re-edited the patch to include this - if you had already integrated the patch, please undo it and use this new version. Thanks.

#5

tristan_roddis - January 16, 2008 - 14:56

krew, please not my comments above. You will need to use the new patch on your code instead!

#6

sirkitree - May 15, 2008 - 16:27
Status:patch (code needs review)» fixed

applied to 5.x branch

#7

Anonymous (not verified) - May 29, 2008 - 16:35
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.