[Suitecrm]模块数据导入”Imports aren’t set up for this module type”

2015年8月29日22:02:38 发表评论 2,232 views

    When creating a module in module builder you can choose whether or not a module is importable. If you haven't made any changes to the module either through studio or through code changes then you can redeploy from module builder.

    If you have made changes then you can add the following line to the bean class (in 'modules/ABC_Your_Module/ABC_Your_Module.php' after the line that starts with 'class':

var $importable = true;

翻译:部分模块被预设置了禁止导入外部数据,轻松修改部分文件内容可以允许导入。文件路径:'modules/ABC_Your_Module/ABC_Your_Module.php' ,打开该PHP文件找到Class字样,在该语句后边加上 引用的该语句便可。

    比如:

require_once('modules/SecurityGroups/SecurityGroup_sugar.php');
class SecurityGroup extends SecurityGroup_sugar {
var $importable = true;

 

  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: