CMS MADE SIMPLE FORGE

Module Generator

 

[#9596] Bulk Delete action

avatar
Created By: Cameron (smokeycam)
Date Submitted: Tue Oct 15 15:59:53 -0400 2013

Assigned To: Zdeno Kuzmany (xxl)
Version: 2.3.1
CMSMS Version: 1.11.9
Severity: Minor
Resolution: None
State: Open
Summary:
Bulk Delete action
Detailed Description:
Hey ya,

When trying to use the bulk items action, it appears the the gCms param is not
set, I added this ( $gCms = cmsms();) to the ModuleExample.module.php file
(DoAction function) and it works now:

public function DoAction($name, $id, $params, $returnid = '') {
        global $CMS_ADMIN_PAGE;
        $gCms = cmsms();
        $config = cmsms()->GetConfig();
        $smarty = cmsms()->GetSmarty();
        $db = cmsms()->GetDb();

Hope that is correct, cheers


History

Comments
avatar
Date: 2013-11-19 08:57
Posted By: Josko (surogat)

If you comment 3rd and 4th line in action.admin_bulkaction.php (from ModuleLib
folder) will work.

These two lines;

// if (!isset($gCms))
 //   exit;

Bye
      
Updates

Updated: 2013-10-15 16:00
resolution_id: => 5