提交 1cb0675c 编写于 作者: 蔡祥熠

Merge branch 'fix/Process.org_null_value' into 'wrdp'

Merge of fix/Process.org_null_value 修复Org组件返回空值出错的问题 to wrdp

See merge request o2oa/o2oa!2433
......@@ -84,6 +84,11 @@ MWF.xApplication.Selector.Person = new Class({
this.subCategorys = []; //直接的分类
this.subItems = []; //直接的选择项
if( !this.options.values ){
this.options.values = [];
}
this._init();
},
_init : function(){
......
......@@ -2051,7 +2051,7 @@ if (MWF.xApplication.process.Xform && MWF.xApplication.process.Xform.Form) {
if (this.ignoreOldData) {
identityOpt.values = this._computeValue() || [];
} else {
identityOpt.values = this.getValue();
identityOpt.values = this.getValue() || [];
}
identityOpt.exclude = exclude;
}
......@@ -2069,7 +2069,7 @@ if (MWF.xApplication.process.Xform && MWF.xApplication.process.Xform.Form) {
if (this.ignoreOldData) {
unitOpt.values = this._computeValue() || [];
} else {
unitOpt.values = this.getValue();
unitOpt.values = this.getValue() || [];
}
unitOpt.exclude = exclude;
}
......@@ -2355,7 +2355,7 @@ if (MWF.xApplication.process.Xform && MWF.xApplication.process.Xform.Form) {
resetSelectorData: function () {
if (this.selector && this.selector.selector) {
this.selector.selector.emptySelectedItems();
this.selector.selector.options.values = this.getValue();
this.selector.selector.options.values = this.getValue() || [];
this.selector.selector.setSelectedItem();
}
},
......@@ -2364,7 +2364,7 @@ if (MWF.xApplication.process.Xform && MWF.xApplication.process.Xform.Form) {
this.setData(v || "");
},
resetData: function () {
var v = this.getValue();
var v = this.getValue() || [];
//this.setData((v) ? v.join(", ") : "");
this.setData(v);
},
......
......@@ -276,7 +276,7 @@ MWF.xApplication.process.Xform.Org = MWF.APPOrg = new Class({
if( this.selectTypeList.length === 0 )return false;
var values = this.getInputData();
var values = this.getInputData() || [];
var exclude = [];
if( this.json.exclude ){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册