Hi,
I found an error message on admin/structure/relation page:
Notice: Undefined variable: return in relation_get_types() (line 457 of /Users/kalmanhosszu/web/d7-dev/sites/all/modules/custom/relation/relation.module).
Warning: Invalid argument supplied for foreach() in relation_get_types() (line 457 of /Users/kalmanhosszu/web/d7-dev/sites/all/modules/custom/relation/relation.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1468454-1.patch | 467 bytes | kalman.hosszu |
Comments
Comment #1
kalman.hosszu commentedA patch attached, I think wrong variable checked in the code.
Kálmán
Comment #2
anouThe patch from #1 fixes the problem (for me on version 7.x-1.0-rc1)
Comment #3
fradipa commented...also for me for 7.x-1.0-rc1 on drupal 7.12;
Thank You.
Comment #4
amateescu commentedPatch is correct.
Comment #5
chx commentedThis is very weird, I am working on relation for a client and that relation.module has
$return = $types ? ctools_export_crud_load_multiple('relation_type', $types) : ctools_export_crud_load_all('relation_type');. That's why it works for me. Crap. Time to a) release rc2 b) get someone to write tests for ctools import.Comment #6
chx commentedComment #7
chx commentedComment #8
mikran commentedrelated #1936206: Relation install fails to add endpoint field to types provided by the defaults hook.
Comment #9
mikran commentedWe have ctools related test module and bunch of tests utilize the exported relation types for other purposes already so this is covered by now.