First the good news, my pre-populate URL with node references is working like a charm!

I have 2 auto-complete node references and get them prepopulated with this:

/node/add/timelog?destination=node/3&edit[field_agreement_node_ref][0][nid]=3&edit[field_context_node_ref][0][nid]=5

The bad news is this only works if you can select from one content type or from a view, not when you select multiple content types from which the node reference can come from.

The problem is that when you tell cck you can pick from more than one content type, the $form['#default_value'] is set to "" and then _prepopulate_get_walk gives it up as a bad job.

As a work-arround creating a view with all the content types you can select from as a filter works just fine.

Anton

Comments

seehawk’s picture

Version: » 6.x-2.1
Priority: Normal » Major

This appears to be an issue in 6.x-2.1 as well.

Ghostthinker’s picture

/node/add/timelog?destination=node/3&edit[field_agreement_node_ref][0][nid]=3&edit[field_context_node_ref][1][nid]=5

Does this help (changed 0 to 1)

jbrauer’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing D6 issues as it's no longer supported.