Closed (fixed)
Project:
Relation Select
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Oct 2011 at 03:24 UTC
Updated:
7 Oct 2015 at 14:00 UTC
Jump to comment: Most recent
Comments
Comment #1
ben_scott commentedSorry, I can't recreate this - what entity / bundle types are you linking from / to?
Comment #2
klonos...better issue title ;)
Comment #3
ni-ka commentedI'm getting the same error here. My relation is a directional relation between two Content Types (nodes). When I add the same relation through the Relation Add Block, everything is fine. However, if I attempt to add a relation on the edit page using the Select UI, I get the error described above.
I also noticed that when I try to save the edit form of a node where I previously added the relation via the Relation Add Block I get the following error (+the one described above):
Notice: Undefined index: 4 in relation_select_field_insert() (line 670 of D:\Projects\Danceit\acquia-drupal7\sites\all\modules\relation_select\relation_select.module).
I use the current Acquia drupal bundle, here the versions of several modules: entity (7.x-1.x-dev), relation (7.x-1.x-dev), CTools (7.x-1.x-dev)
Comment #4
busla commentedGetting this error when using Relation and Page Manager. I add a relation:id as an argument (relation/%relation/custom-page).
Anyone has an idea?
Comment #5
steveoliver commentedJust going through the queue looking to close critical issues and bugs.
relation_select_field_insert() has been changed a bit recently. I can't reproduce this error. Please try again and re-open this issue it persists.
Thanks.
Comment #6
steveoliver commentedI think I was able to reproduce this error when cloning a node (using node_clone module).
I got these errors when cloning a node which had relation_select fields:
When reviewing
relation_select_field_insert(), I noticed that we weren't properly dealing with the three scenarios for relation select fields:1. Create new relation.
2. Update existing relation.
3. Delete relation which no longer has endpoints set.
The cleanup in commit c3b0bf3 may help your situation. Please update to the latest 7.x-1.x-dev and let me know if it helps your situation(s).
Possibly related: #1334286: When opening Content / Relations tab in admin UI -> EntityMalformedException: Missing bundle property on entity of type relation.
Comment #7
steveoliver commentedChanging issue status.
Comment #8
mvlabat commentedThe way to reproduce this bug again:
That is what you will get:
Comment #9
mvlabat commentedSorry, didn't notice this is "Relation select" module issue, when googling this error. )
This bug, as I found, relates straightly to Relation module.