With Comment Driven active, Team Notifications (http://drupal.org/project/notifications_team) don't show up. Instead of the checkboxes for selecting people to update, all that appears is the word Array
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 2010-04-03_support_notifications_team[unix].patch | 4.56 KB | arhak |
| notifications.png | 16.9 KB | Brentnauer |
Comments
Comment #1
arhak commentednotice that this wouldn't be considered a bug
it is rather a support request
which might be achievable depending on feedback
and #746870: FAQ: what might be the problem with comment-related modules?
what version of notifications_team are you using?
is there any other detail regarding its configuration that you might add?
Comment #2
Brentnauer commentedI'm using Team Notifications UI (6.x-2.0-beta6) which depends on the following:
Content Notifications (6.x-2.2), Notifications (6.x-2.2), Messaging (6.x-2.2) and Token (6.x-1.12).
My particular content type uses Conditional Fields 6.x-1.1, but I can produce the same results on content types that don't use it. I have no weird configurations... Simply enabling Comment Driven on the node type and selecting "Node Title" is enough to cause Team Notifications to display that
Arraymessage.Comment #3
arhak commentedbased on a quick review to notifications_team's code
I'll take a guess (note that this hasn't been tested not even tried)
please, test it and report whether it produces the desired effect, just partially, or none at all
- go to file
comment_driven.module- find the function
_comment_driven_disguise_children(on my local version it is near line 190)- within it, find comment line
// protect ourself against 3rd parties creating NULL children...(near line 200)- right before that line insert the following code:
note that this is just a test,
if it works it will still need some tuning
PS:
- not particularly related to OA
- I wasn't asking for cdriven's config, rather for notifications_team's config, but it won't be necessary since I recognized the cause of conflict
Comment #4
arhak commentedIMPORTANT: in the above code (@#3) make the $key comparison a triple equal sign
i.e.
if ($key === 'notifications' ...Comment #5
Brentnauer commentedYessir! That worked!
As far as Notification Team's config... It's whatever OpenAtrium beta 5 ships with. I know it doesn't matter at this point though; sorry for the misunderstanding! Anything else I can do to help just let me know!
Comment #6
arhak commentedyou can run another test,
since you opened this issue as "User interface" then I'm telling you that the theme function was not the only thing broken, at that point notifications weren't working,
now we need to know if notifications work properly
test:
- disable comment_driven
- use notifications_team as usual, make a comment and verify that you were notified
- then enable comment_driven (with the modification done) and repeat the experiment to verify that you get the expected notification
- report back
EDIT: spelling nonsense
Comment #7
arhak commentedPS: note that I haven't installed that module, just reviewed its code, therefore, this depends on your tests
Comment #8
arhak commentedhere is the proposed patch
very similar to #3 with minor tunings and commented code
Comment #9
Brentnauer commentedOops, it allows Team Notifications to show up, but it doesn't send anything when you update the node.
However, it works correctly with Comment Driven disabled.
Comment #10
arhak commentedwell, then it can't be solved by just reviewing code
I'll have to set up those modules and debug
but right now, I'm in the middle of many other stuffs
I guess that the problem is within notifications_ui
do you have an "Update" button for some subscriptions?
Comment #11
Brentnauer commentedFalse alarm, it DOES work... There was a problem with my mail configuration.
I tried your new proposed patch, also works splendidly. Marking this as reviewed and tested. Thank you for being so quick to help!
Comment #12
arhak commentednevertheless, it would be nice to have a second review of that notifications_ui submission handler (mentioned at #10)
Comment #13
bibo commentedThe patch fixed it for me too!
team_notifications seem to work fine, so please commit this :).
On a sidenote the casetracker UI still looks pretty bad when comment_driven is enabled. But it's usable, and not caused by this patch.
I think I need to find out how I can theme the "Assign user"-radiobuttons back like they where.
Hopefully I can find a theme override without patching.. Nothing to do with this case though.
Comment #14
arhak commentedplease, open a different issue for casetracker UI (with some screenshots if possible)
perhaps this module should take care of some theme support, and also other users might jump in an provide their thoughts
Comment #15
bibo commentedOk, created casetracker issue --> #768202: Compatibility with casetracker
Comment #16
arhak commented@#15 they ended up being related issues after all
the proposed patch for this issue is RTBC, but I'm considering a more generic approach
Comment #17
arhak commentedplease, test this other patch instead (which is the one attached to #768202-9: Compatibility with casetracker)
and report back whether it solves this issue
EDIT: this patch requires to clear the cache
Comment #18
vishnu2010 commentedplease help to solve this issue
http://drupal.org/node/769636
Comment #19
arhak commented@#18 and how is that supposed to be related to this issue or even this module?
Comment #20
nicholas.alipaz commentedJust posting my experience here, patch in #17 does not seem to work for me. I did clear caches and theme registry, also cleared browser cache. #8 does however seem to be working.
--
Los Angeles Web Design and development for Drupal.
Comment #21
arhak commented@#20 thanks, that would be enough
according to #16 & #20, we stay with patch proposed at #8
Comment #22
bibo commentedI just found out the patch in #17 works great with a very small adjustment: adding
$element['#theme_used'] = false;to the theme_comment_driven_proxy()-function.Fixes team_notifications and casetracker UI. The patch can be found in my casetracker related post: here. Note that the patch is against alpha-2 (just like the patch in #17).
Comment #23
arhak commented@#22 the new proposed patch for this issue would be then 2010-04-03_support_notifications_team_and_casetracker[unix].patch
both issues will be solved with a unified approach, and in passing by, lots of other modules as well
Comment #24
arhak commentednew proposed patch is 2010-04-15_proxy_pre_render_theme_post_render[unix].patch
(for further details read #768202-12: Compatibility with casetracker)
Comment #25
arhak commentedcommited to HEAD (the same fix at #768202)
remember that this requires to clear cache
(there is a new theme function)