提交 6c5c47de 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'fix/gulp_v' into 'wrdp'

修复组织控件职务默认值不正确的问题

See merge request o2oa/o2oa!2795
......@@ -246,8 +246,8 @@ MWF.xApplication.process.Xform.Org = MWF.APPOrg = new Class(
var code = "return this.org.getDuty(\""+duty.name+"\", \""+uName+"\", true)";
var r = (!!uName) ? this.form.Macro.exec(code, this) : "";
var rs = (o2.typeOf(r)=="array") ? r : [r];
return Promise.all(rs).then(function(d){
var m = (o2.typeOf(r)=="array") ? "all" : "resolve";
return Promise[m](r).then(function(d){
if (typeOf(d)!=="array") d = (d) ? [d.toString()] : [];
var arr = [];
d.each(function(dd){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册