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

CommentFileSizeAuthor
#1 nodecomment-views-inc.patch.txt876 bytestristan_roddis

Comments

tristan_roddis’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new876 bytes

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)

krew’s picture

Status: Active » Needs review

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

sethcohn’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.

tristan_roddis’s picture

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.

tristan_roddis’s picture

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

sirkitree’s picture

Status: Needs review » Fixed

applied to 5.x branch

Anonymous’s picture

Status: Fixed » Closed (fixed)

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