提交 029afa89 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'cherry-pick-7ae43038' into 'wrdp'

修复cms脚本的data.add方法

See merge request o2oa/o2oa!5553
......@@ -13,8 +13,9 @@ MWF.xScript.CMSEnvironment = function(ev){
return new MWF.xScript.CMSJSONData(jData, function(data, key, _self){
var p = {"getKey": function(){return key;}, "getParent": function(){return _self;}};
while (p && !_forms[p.getKey()]) p = p.getParent();
if (p) if (p.getKey()) if (_forms[p.getKey()]) _forms[p.getKey()].resetData();
});
var k = (p) ? p.getKey() : "";
if (k) if(_forms[k]) if(_forms[k].resetData) _forms[k].resetData();
}, "", null, _form);
};
this.setData = function(data){
this.data = getJSONData(data);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册