Using AJAX comments and Organic Groups modules together caused some problems for me. Not a long time ago I created an issue in Organic Groups thread... (http://drupal.org/node/1849432) But trying to solve the problem by myself I found out that fixes should be made in ajax_comments.module.
The problem was that that Ajax comments module tried to add a form for posting comments even if a user didn't have rights to do that. It caused the following error:
Notice: Undefined index: title в функции theme_links() (строка 1712 в файле /home/u7015/domains/warp.org.ua/includes/theme.inc).
(To reproduce it you have to visit a node with a group type and ajax-comments enabled, any page you'll visit after this one will show the error above.)
So I've added a check if a user have rights that OG module privileges. This patch will work only with http://drupal.org/project/comment_og module enabled, because it checks a right provided only by this module.
Please, test it and comment. This is my first patch in my life)
Comment | File | Size | Author |
---|---|---|---|
ajax_comments.module.patch | 1.09 KB | mvlabat | |
Comments
Comment #0.0
mvlabat CreditAttribution: mvlabat commentedreproduse -> reproduce
Comment #1
formatC'vt CreditAttribution: formatC'vt commentedPath outdated and special-casing code... i don't like it, but we can add this.
mvlabat, please, re-assign to yourself if you are planning to work on this.
Comment #2
formatC'vt CreditAttribution: formatC'vt commentedComment #3
firewaller CreditAttribution: firewaller commentedUnrelated to the specific issue, but just incase anybody else has issue with Comment OG, it seems that the ajax_comments classes are overwritten by comment_og.
I added a patch to modify the values instead of overriding the entire comment link: https://www.drupal.org/node/2623228#comment-10606726
Comment #4
formatC'vt CreditAttribution: formatC'vt commentedyep