Просмотр исходного кода

表单支持异步返回值脚本

huqi 5 лет назад
Родитель
Сommit
510b039622
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      o2web/source/x_component_process_Xform/Org.js

+ 2 - 1
o2web/source/x_component_process_Xform/Org.js

@@ -769,7 +769,8 @@ MWF.xApplication.process.Xform.Org = MWF.APPOrg =  new Class({
     },
     checkChange: function(oldValues, values){
         var change = false;
-        if (oldValues.length && values.length){
+        if (!values) values = [];
+        if (oldValues.length && (values && values.length)){
             if (oldValues.length === values.length){
                 for (var i=0; i<oldValues.length; i++){
                     if ((oldValues[i].distinguishedName!==values[i].distinguishedName) || (oldValues[i].name!==values[i].name) || (oldValues[i].unique!==values[i].unique)){