When I select a node (with auto complete field) and save, it does its job correctly.
But when I edit the entry, and delete the content of the nodereference field, then save.... the previously referenced node i still there. It seems there is no way to delete it.

Cordially,
Brakkar

Comments

Egon Bianchet’s picture

I have the same problem

Egon Bianchet’s picture

userreference seems to work fine

Egon Bianchet’s picture

Status: Active » Needs review
StatusFileSize
new1.43 KB

Ok here's a patch. The issue occurs only for single value autocomplete fields, because the standard content_filed 'op' case doesn't delete them ... so i implemented it (just for single value autocomplete fields) in nodereference.module

yched’s picture

this probably needs a re-roll now that http://drupal.org/node/78825 has been committed

Egon Bianchet’s picture

Re-rolled

yched’s picture

I should have looked closer at your patch before asking you to re-roll it. Sorry about that

Actually, this is not right way to fix this.
This happens in nodereference_widget($op = 'process form values')

This should be fixed by the patch in http://drupal.org/node/62498
I'll wait until it gets committed to mark this as fixed

karens’s picture

Status: Needs review » Fixed

I committed the patch at http://drupal.org/node/62498 which fixes this too.

Anonymous’s picture

Status: Fixed » Closed (fixed)