首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何删除listview SugarCrm 7中的create按钮

如何删除listview SugarCrm 7中的create按钮
EN

Stack Overflow用户
提问于 2017-01-16 22:58:39
回答 2查看 427关注 0票数 0

如何在SugarCRM 7中删除ListView中的创建按钮。

EN

回答 2

Stack Overflow用户

发布于 2017-01-25 20:18:22

你可以为它写一个应用程序接口:在custom/clients/base/api中,但这将隐藏该模块的任何地方的创建按钮。

代码语言:javascript
复制
<?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;
    }

}
票数 0
EN

Stack Overflow用户

发布于 2019-06-21 03:21:35

在您的view.list.php中添加:

代码语言:javascript
复制
public function getModuleTitle($show_help = true)
{
    parent::getModuleTitle(false);
}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41679215

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档