Hi,

Scenario:

  1. node1 of content type A in language de (default language en)
  2. I want to create a node2 of type B with a required node-reference to nodes of type A
  3. I select de as the language of node2 in the node creation form

Actual behavior:

The node_reference widget shows an empty list of nodes to select from. Since I'm not allowed to save the node (ie. change the nodes language) there is no way to create a node.

Expected behavior:

As soon as I select the language the node_reference widget should reload the available nodes this time by the selected language (+undefined language).

Proposed solution:

Explicitly filter the available nodes by language instead of relying on i18n_select to do that.

This would also at least partially fix http://drupal.org/node/1099956 .

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

torotil’s picture

This is rather hard to implement as neither the option lists nor the views are designed to have access to the node or form object.

torotil’s picture

Version: 7.x-2.0-beta3 » 7.x-2.x-dev
FileSize
2.1 KB

In the meanwhile I use this patch to solve my problem. It disables filtering by i18n_select and displays a language indicator behind the node title.

torotil’s picture

Status: Active » Needs review