I got surprised when my nodereference suddenly said that my reference wasn't ok, but found that it was because of me changing the name of the referenced node type. Dunno of this counts as a bug, but most people probably expect node references to be unaffected when they change names of nodes.

To reproduce:
* install Drupal 6.3 + CCK rc4, activate nodereference and related CCK parts
* Create a node reference field for Story relating to Page.
* Create a Page to refer to. Create a Story referring to it.
* Change name of page node type to newpage.
* Edit the Story you wrote, try to save.
Error message: "this post can't be referenced."
The reference field for the Story shows that the NewPage type is not checked.

I found a similar issue at This post can't be referenced, but it didn't seem the same to me.

You people working with CCK are doing a great job. Thanks.

Comments

yched’s picture

Status: Active » Fixed

Fixed in 6.x-2.x-dev (not in RC5)
Took me #294726: _content_type_info() does not reset (on content type changes) to understand why my fix wouldn't work.

This only takes care of 'referenceable nodes defined by content type'. If referenceable nodes are defined by a View which includes a filter on node type, you're on your own (or that would be a feature request for Views).

Anonymous’s picture

Status: Fixed » Closed (fixed)

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