I tried for awhile to make this work, and had no success.

Using the latest dev I wasn't able to create a new relationship using this super-awesome select widget on a node form. The node would save, and nothing would happen relation-wise.

The relation was never being saved if a relation didn't otherwise exist. Patch coming.

CommentFileSizeAuthor
#1 relation_no_save-1597858-1.patch790 bytesvordude

Comments

vordude’s picture

StatusFileSize
new790 bytes

This one works for me. (There's also some standards cleanup around the line I moved)

relation_create() only creates a relation object. That object needs saving.

christoph’s picture

Thanks - this patch works for me as well.

steveoliver’s picture

Status: Active » Reviewed & tested by the community

patch in #1 works for me.

steveoliver’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 7.x-1.x in git commit e71aa72. Thanks, vordude.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Yeah. Using words here.