CMS MADE SIMPLE FORGE

CGFeedback

 

[#6854] No users notifications when moderating in admin by using checkboxes (as a supplement to bug #6853)

avatar
Created By: Emmanuelle Lellouche (Numastick)
Date Submitted: Tue Sep 06 14:00:49 -0400 2011

Assigned To: Robert Campbell (calguy1000)
Version: 1.3.5
CMSMS Version: 1.9.4.2
Severity: Major
Resolution: Fixed
State: Closed
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.


History

Comments
avatar
Date: 2011-09-06 23:30
Posted By: Robert Campbell (calguy1000)

Fixed in svn.
      
avatar
Date: 2011-09-07 03:56
Posted By: Emmanuelle Lellouche (Numastick)

Thanks
      
Updates

Updated: 2012-06-22 10:35
state: Open => Closed

Updated: 2011-09-06 23:30
resolution_id: => 7