I added 2 views arguments to the view used for selecting the nodes. If I make those arguments required in the view (Action to take if argument is not present: Hide view / Page not found (404)), then the dialog that opens when clicking the "Browse" button allows me to select from a correctly limited list of nodes. However, after choosing a node from that list in the dialog, pressing the ok button and afterward saving the node, I get a validation error, saying "this post can't be referenced.". This makes me believe that the arguments are not correctly passed to the view on validation. If I make the view arguments not required (Action to take if argument is not present: Display all values) then no validation errors show up.

Except for this small issue, thanks for the excellent module!

Comments

gnindl’s picture

Version: 6.x-1.1-rc2 » 6.x-1.x-dev
Assigned: Unassigned » gnindl
Status: Active » Fixed

Indeed the arguments were wrongly passed. Line 133 in nodereference_explorer.views.class.inc was changed from

 $args = split('/', $this->view_args); //split multiple arguments by slashes

to

 $args = split(',', $this->view_args); //split multiple arguments by slashes

Commas are the delimiters of arguments in nodereference fields.

Watch out the latest dev snapshot.

Status: Fixed » Closed (fixed)

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