The views relationships provided by redhen_note need some love.
Most are impossible - "Note to Commerce Payment transaction" anyone?!
One I did expect to work was "Note to Engagement", but this one is not functional.
I will look into patching this today.
Thanks as always for the module!
Pete
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | redhen-notes-relationships-1930122-6.patch | 10.96 KB | micnap |
| #1 | redhen-notes-relationships-1930122-1.patch | 10.63 KB | Pete B |
Comments
Comment #1
Pete B commentedSo some time passed, but as promised here is a patch for this. I address views relationships for Notes, Engagements and Engagement Scores. This allows proper relationships between these three related entities.
Thanks,
Pete
Comment #2
Pete B commentedForgot to set needs review...
Comment #3
micnap commentedApplied cleanly except for the /modules/redhen_note/redhen_note.info file. For some reason it refused to add the "files[] = lib/redhen_note.views.inc" line. Also, I had to rebuild the registry because of the RedhenNoteViewsController class getting added. I was getting a fatal error saying that RedhenNoteViewsController didn't exist.
I also changed line 17 of modules/redhen_note/lib/redhen_note_views.inc from
if ($entity_type == 'redhen_contact') {
to
if ($entity_type == 'redhen_contact' || $entity_type == 'redhen_org') {
to give me the relationship between notes and redhen_org.
Seems to be working well.
Thanks,
Mickey
Comment #4
westberliner commentedTested the Patch with the modification from micnap. Worked fine within my redhen_note installation.
Comment #5
levelos commentedThe patch needs to be re-rolled against head and include @micnap's changes from #3.
Comment #6
micnap commentedHere's a re-roll.
Comment #7
heylookalive commentedBump, for commit please!
Comment #8
levelos commentedFixed! Thanks everyone, nice work. Sorry this took so long. Ref. f5c2531.