Closed (fixed)
Project:
Relation
Version:
7.x-1.x-dev
Component:
API
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2011 at 21:05 UTC
Updated:
18 Jun 2012 at 11:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
pasqualleYes, this patch works nicely..
---
but I will give up on relation type exports, as I still have issues with it.
in relation_endpoint_field_validate() function
sometimes the $relation_type->source_bundles and $relation_type->target_bundles is an empty array..
No idea why, when I store the same export into the database, then it works..
Could be something wrong with my custom code..
Comment #2
naught101 commentedThis join looks right to me. Can we find out first why it isn't working? Is it because the relation_type is missing from the relation_type table, or from the relation table?
Comment #3
phayes commentedHi naught101,
That join is wrong as it assumes that all relation_types are created manually in the admin interface, instead of being implemented using a hook (as features does). When a relation_type is implemented using a hook, it never gets added to the database (nor should it).
Comment #4
mikran commentedphayes is correct on this one.
Comment #5
chx commentedLooks good. I will commit this but a test would make me happier. Also, this has nothing to do with features (I will won't fix immediately any features related bugs as that module in itself is not much more than a bug) but it's a ctools export problem.
Comment #7
mikran commentedOriginal patch rerolled, tests added and couple of typos fixed in tests
Comment #8
mikran commentednew reroll and whitespace error fixed
Comment #9
mikran commentedcommitted
Comment #10.0
(not verified) commentedadding able