Drupal 5.2
CCK 5.x-1.5
// $Id: nodereference.module,v 1.39.2.17 2007/03/05 21:58:47 yched Exp $

$field['view_args'] should be $field['advanced_view_args'] in function _nodereference_potential_references()

CommentFileSizeAuthor
nodereference_2.patch548 bytesjweowu

Comments

yched’s picture

Status: Needs review » Fixed

this is fixed in -dev release, and will be in forthcoming 1.6 release (As soon as my ISP fixes my connexion at home...)

Anonymous’s picture

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

I have the newest nodereference.module and the code looks like it's in there, but I don't see any nodereference view argument selection? Am I looking in the wrong place? I've cleared my cache and views cache as well?

ChrisOwens’s picture

Version: 5.x-1.5 » 5.x-1.6
Status: Closed (fixed) » Active

Just to be sure we're all talking about the same problem: When creating or editing a view, e.g. ?q=admin/build/views/add, attempt to add an argument to the view. The drop-down list of arguments fails to include any fields that are of type 'nodereference'.

I have two sites, identically configured; one exhibits the problem and the other does not.

Both have:
Drupal: 5.3
Content: 5.x-1.6-1
Node Reference: 5.x-1.6-1
Views: 5.x-1.6

The problem occurs here:
MySQL database 4.0.21
PHP 4.3.10
Unicode library PHP Mbstring Extension
Web server Apache/1.3.39 (Unix) mod_throttle/3.1.2 mod_tsunami/3.0 FrontPage/5.0.2.2634

This one works fine:
MySQL database 5.0.45
PHP 5.2.4
Unicode library PHP Mbstring Extension
Web server Apache/1.3.33 (Darwin) PHP/5.2.4

rdixon22’s picture

I was seeing this same problem on my site -- the drop-down list of arguments failed to include any fields of type 'nodereference'.

After much trial and error, I found that if I disabled the Date field module (in Administer > Modules) then the nodereference types began appearing again in the Arguments drop-down list.

This is under 5.3 with CCK 1.6.1 (PHP 4.4.6 and PHP 4.1.22)

yched’s picture

Status: Active » Closed (duplicate)

Karen just fixed that in date.module - see http://drupal.org/node/189093