IDEMPIERE-5025 Easier usage of process parameters (#1128)

Fix assignment of boolean parameters.
This commit is contained in:
Saulo José Gil 2022-01-12 04:18:34 -03:00 committed by GitHub
parent a5b5494294
commit a9c4b932c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -795,6 +795,8 @@ public abstract class SvrProcess implements ProcessCall
Object tmp = parameter.getParameter(); Object tmp = parameter.getParameter();
if(tmp instanceof String && tmp != null) if(tmp instanceof String && tmp != null)
field.set(this, "Y".equals(tmp)); field.set(this, "Y".equals(tmp));
else
field.set(this, tmp);
} else { } else {
continue; continue;
} }