Deleted node will still display an empty line in composite zone form, which is quite disturbing for end users.

I did a simple patch that displays a message to users, if they have the permission to edit the current composite node, that alter them that non existing nodes are being displayed. It also remove the reference id to $references array so the form does not displays it, which also have the side effect to remove them from the references array when the users saves the form.

Comments

pounard’s picture

StatusFileSize
new5.06 KB

Did a small typo error which was a serious bug, new patch attached.

bengtan’s picture

Hi,

The patch file doesn't apply for me. I suspect it's because a lot of the tabbing indentation has changed in your version.

Please reroll the patch file with diff -urN, or else attach a copy of the complete composite.node.inc file.

Thank you.

pounard’s picture

This was an ugly patch, I did it in a urge because a project was bugging. I will rewrite it.

bengtan’s picture

Status: Active » Closed (duplicate)

Marking as duplicate of #841622: CCK nodereference field pointing deleted node (or at least, closely related enough that solving one properly should solve the other).