在sugarcrm中创建自定义字段时遇到错误 [英] Error encountered when creating custom field in sugarcrm

查看:164
本文介绍了在sugarcrm中创建自定义字段时遇到错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 警告:

从C中创建默认对象C:\xampp\htdocs\Sugarcrm\modules\ModuleBuilder\views\view.modulefield.php第151行
{east:{标题:编辑字段,面包屑:,内容:
< \ / div> \\\
\\\

pre>

解决方案

这是由较新版本的PHP引起的。



modules / ModuleBuilder / views / view.modulefield.php

  VardefManager :: loadVardef($ moduleName,$ objectName,true); 
全局$字典;
//添加下三行
if(!isset($ module-> mbvardefs) || is_null($ module-> mbvardefs)){
$ module-> mbvardefs = new stdClass();
}

资料来源: https://github.com/sugarcrm/sugarcrm_dev/pull/143/files


I got the below warning while trying to create a custom field in sugarcrm.

Warning:

Creating default object from empty value in C:\xampp\htdocs\Sugarcrm\modules\ModuleBuilder\views\view.modulefield.php on line 151
{"east":{"title":"Edit Field","crumb":"","content":"
<\/div>\n\n

解决方案

This is caused by a newer version of PHP.

Add the following code after line 150 in modules/ModuleBuilder/views/view.modulefield.php

VardefManager::loadVardef($moduleName, $objectName,true);
global $dictionary;
// add the next three lines
if(!isset($module->mbvardefs) || is_null($module->mbvardefs)) {
     $module->mbvardefs = new stdClass();
}

Source: https://github.com/sugarcrm/sugarcrm_dev/pull/143/files

这篇关于在sugarcrm中创建自定义字段时遇到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆