Get in touch:
01524 851 877
07718 896 553

SugarCRM – Remove Mass Update From A Built In Module

Posted on Jan 02 2010 by Matthew Jakeman

This quick post will show you how to remove the mass update field from a built in module in SugarCRM. This will also work for a module that has been deployed but it will not work properly for a module built using module builder. Well, it will work but as soon as you re-deploy the module the changes will be over-written.

For the purpose of this we will use the Opportunities module and assume that it is this that we wish to remove the Mass Update panel from.

The first thing to do is create the file ‘view.list.php’ in /custom/modules/Opportunities/views/ – If this path does not exist, simply create it and place the file in there.

Once that is done add the following code to the file.

if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');

require_once('include/MVC/View/views/view.list.php');

class OpportunitiesViewList extends ViewList
{
function listViewProcess()
{
$this->lv->showMassupdateFields = false;
parent::listViewProcess();
}
}

This will remove the Mass update panel from the module. To adapt the above code for other modules simply change the name of the class from OpportunitiesViewList to ViewList and place it in the appropriate directory.

1 Comment

  1. Nice Post. It helped me to remove the Mass update from built in module. Thanks for posting.

Leave a comment