Explorar o código

Merge branch 'fix/add-update-statement' into 'wrdp'

查询语句增加可执行update、delete

See merge request o2oa/o2oa!3057
o2null %!s(int64=4) %!d(string=hai) anos
pai
achega
5fd2603428

+ 1 - 1
o2web/source/x_component_query_StatementDesigner/Statement.js

@@ -286,7 +286,7 @@ MWF.xApplication.query.StatementDesigner.Statement = new Class({
     loadJpqlTypeSelect : function(){
       this.jpqlTypeSelect.empty();
       var optionList = [{text:"SELECT", value:"select"}];
-      if( this.data.entityCategory === "dynamic" ){
+        if( this.data.entityCategory === "dynamic" || this.data.description.indexOf("update")>-1){
           optionList = optionList.concat([
               {text:"UPDATE", value:"update"},
               {text:"DELETE", value:"delete"}