如何在SugarCRM 7中删除ListView中的创建按钮。
发布于 2017-01-25 20:18:22
你可以为它写一个应用程序接口:在custom/clients/base/api
中,但这将隐藏该模块的任何地方的创建按钮。
<?php
/**
* @author Harshal
*/
/*
* Your installation or use of this SugarCRM file is subject to the applicable
* terms available at
* http://support.sugarcrm.com/06_Customer_Center/10_Master_Subscription_Agreements/.
* If you do not agree to all of the applicable terms or do not have the
* authority to bind the entity as an authorized representative, then do not
* install or use this SugarCRM file.
*
* Copyright (C) SugarCRM Inc. All rights reserved.
*/
if (!defined('sugarEntry') || !sugarEntry)
die('Not A Valid Entry Point');
require_once("clients/base/api/CurrentUserApi.php");
class CustomCurrentUserApi extends CurrentUserApi {
public function registerApiRest() {
return parent::registerApiRest();
}
public function retrieveCurrentUser($api, $args) {
$result = parent::retrieveCurrentUser($api, $args);
$result['current_user']['acl']['MODULENAME']['create'] =
return $result;
}
}
发布于 2019-06-21 03:21:35
在您的view.list.php中添加:
public function getModuleTitle($show_help = true)
{
parent::getModuleTitle(false);
}
https://stackoverflow.com/questions/41679215
复制相似问题