IDEMPIERE-3220:read-only field can edit by development tool

exception when change value match to readonly logic
This commit is contained in:
hieplq 2016-11-27 20:13:40 +07:00
parent e0be0231b2
commit bf3dc6b718
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ public class ValidateReadonlyComponent implements AuService {
// event is reason change value of component
boolean considerEvent = Events.ON_CHANGE.equals(cmd) || Events.ON_CHECK.equals(cmd) ||
Events.ON_SELECT.equals(cmd) || Events.ON_OPEN.equals(cmd) ||
Events.ON_SELECT.equals(cmd) ||
Events.ON_CLICK.equals(cmd) || Events.ON_DOUBLE_CLICK.equals(cmd) || Events.ON_OK.equals(cmd) || Events.ON_UPLOAD.equals(cmd);
if (!considerEvent){
@ -99,7 +99,7 @@ public class ValidateReadonlyComponent implements AuService {
if (isCannotEdit){
boolean editing = (inputComp != null && Events.ON_CHANGE.equals(cmd)) ||
(checkbox != null && Events.ON_CHECK.equals(cmd)) ||
(comb != null && (Events.ON_CHANGE.equals(cmd) || Events.ON_SELECT.equals(cmd) || Events.ON_OPEN.equals(cmd))) ||
(comb != null && (Events.ON_CHANGE.equals(cmd) || Events.ON_SELECT.equals(cmd))) ||
(button != null && (Events.ON_CLICK.equals(cmd) || Events.ON_OK.equals(cmd) || Events.ON_UPLOAD.equals(cmd)));;
// for combobox each change have both event onchange and onselect, so will have duplicate message