There are two ways to solve this problem. I tested it on Sugar 5.0f CE and it works. Rights set by roles are also applied.
Solution 1 (very easy)
Remove or rename two files: modules/Project/views/view.list.php and modules/ProjectTask/views/view.list.php. It seems that those files are not necessary for those modules to work correctly. I noticed only one change - mass update will appear.
Solution 2 (easy)
Edit two files: modules/Project/views/view.list.php and modules/ProjectTask/views/view.list.php Both of them are identical except class name and constructor. Changes must be applied to both of them.
Change this
PHP Code:
global $current_user;
if (!is_admin($current_user)){
$params = array( 'massupdate' => false );
$lv->export = false;
}
else{
$params = array( 'massupdate' => true, 'export' => true);
}
to this
PHP Code:
global $current_user;
if (!is_admin($current_user)){
//$params = array( 'massupdate' => false );
//$lv->export = false;
$params = array( 'massupdate' => false, 'export' => true );
}
else{
$params = array( 'massupdate' => true, 'export' => true);
}
also change this
PHP Code:
if(empty($_REQUEST['search_form_only']) || $_REQUEST['search_form_only'] == false){
$this->processQuickSearch();
if (!is_admin($current_user)){
$lv->setup($seed, 'include/ListView/ListViewNoMassUpdate.tpl', $where, $params);
}
else {
$lv->setup($seed, 'include/ListView/ListViewGeneric.tpl', $where, $params);
}
$savedSearchName = empty($_REQUEST['saved_search_select_name']) ? '' : (' - ' . $_REQUEST['saved_search_select_name']);
to this
PHP Code:
if(empty($_REQUEST['search_form_only']) || $_REQUEST['search_form_only'] == false){
$this->processQuickSearch();
/* if (!is_admin($current_user)){
$lv->setup($seed, 'include/ListView/ListViewNoMassUpdate.tpl', $where, $params);
}
else {*/
$lv->setup($seed, 'include/ListView/ListViewGeneric.tpl', $where, $params);
//}
$savedSearchName = empty($_REQUEST['saved_search_select_name']) ? '' : (' - ' . $_REQUEST['saved_search_select_name']);
In this solution mass update will not appear.
Bookmarks