Skip to content

Commit

Permalink
修复参数错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Huan Gan authored and Huan Gan committed Jul 3, 2017
1 parent a2dd1cb commit 732c844
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ birt报表网页预览版
3. 添加TOC居中功能
4. 修复参数必填项BUG(缺选择全部,如何留空)

## 2017-07-03
1. 修复报表参数弹出参数名异常,改为显示参数描述信息;
2. 修复报表参数不能为空异常,改为用*查询全部[无效,后端服务器也有验证]


12 changes: 11 additions & 1 deletion WebContent/birt/ajax/ui/dialog/BirtParameterDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,17 @@ BirtParameterDialog.prototype = Object.extend(new AbstractParameterDialog(),
// alert(birtUtility.formatMessage(Constants.error.parameterNotAllowBlank, paramName));
alert(birtUtility.formatMessage(Constants.error.parameterNotAllowBlank, title));
return false;
}
}

/**
if(birtUtility.trim(paramValue) === '*') {
paramValue = '';
}
if(birtUtility.trim(fieldValue) === '*') {
fieldValue = '';
}
**/

// set parameter value
if(!this.__parameter[k])
Expand Down

0 comments on commit 732c844

Please sign in to comment.