Summary:
No users notifications when moderating in admin by using checkboxes (as a supplement to bug #6853)
Detailed Description:
As a supplement to bug #6853, when posts are moderated, if the admin uses
checkboxes to change comment status from "draft" to "published", no
notifications are sent to users who wanted to be warned (notification checkbox
checked).
Mathieu Muths (airelibre) gave me a quick code which seems to work quite well :
In the action.admin_bulkactions.php file, line 81 :
FROM :
case 'published':
$ret = $ops->change_comment_status($one,CGFEEDBACK_STATUS_PUBLISHED);
if( $ret == TRUE )
{
$count++;
}
break;
TO :
case 'published':
$ret = $ops->change_comment_status($one,CGFEEDBACK_STATUS_PUBLISHED);
if( $ret == TRUE )
{
$count++;
}
$comment = cgfb_comment_ops::load($one);
cgfb_comment_notifier::notify_users($comment);
break;
Thanks for your help.