如何删除<module> ViewQuickcreate默认按钮?

时间:2019-03-05 21:25:30

标签: php sugarcrm suitecrm

我想从QuickCreateView中删除默认按钮SAVE,CANCEL和FULLFORM。我必须通过注释以下几行来修改方法/include/MVC/View/views/view.quickcreate.php中的核心文件display

$this->ev->defs['templateMeta']['form']['headerTpl'] = $this->headerTpl;
$this->ev->defs['templateMeta']['form']['footerTpl'] = $this->footerTpl;
$this->ev->defs['templateMeta']['form']['buttons'] = $this->defaultButtons;
$this->ev->defs['templateMeta']['form']['button_location'] = 'bottom';
$this->ev->defs['templateMeta']['form']['hidden'] = '<input type="hidden" name="is_ajax_call" value="1" />';
$this->ev->defs['templateMeta']['form']['hidden'] .= '<input type="hidden" name="from_dcmenu" value="1" />';

但是我想避免这种情况。什么是从中删除默认按钮的正确方法 ViewQuickcreate?

0 个答案:

没有答案