Răsfoiți Sursa

子数据源reload错误

huqi 5 ani în urmă
părinte
comite
28cf5a4a53
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      o2web/source/x_component_process_Xform/SubSource.js

+ 1 - 1
o2web/source/x_component_process_Xform/SubSource.js

@@ -106,9 +106,9 @@ MWF.xApplication.process.Xform.SubSource = MWF.APPSubSource =  new Class({
             if (this.source.data){
                 this._getSourceData(this.source.data);
                 this.fireEvent("postLoadData");
+                if (typeOf(this.data)!=="array") this.data = [this.data];
                 if (typeOf(this.data)=="array"){
                     this._loopData();
-
                     this.fireEvent("loadData");
                 }else{
                     this.form._loadModules(this.node);