From ef6553f33948b4f5c72e37e3057c9c78324a83c1 Mon Sep 17 00:00:00 2001 From: "bruno.neves" Date: Thu, 22 Mar 2018 21:13:03 +0000 Subject: [PATCH] =?UTF-8?q?fixes=20bug#0010358=20obs:=20adicionada=20funci?= =?UTF-8?q?onalidade=20de=20sele=C3=A7=C3=A3o=20de=20varias=20fun=C3=A7?= =?UTF-8?q?=C3=B5es=20para=20adicionar=20no=20perfil.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit dev: Frederico qua: Renato git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@80159 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../rjconsultores/ventaboletos/entidad/PerfilFuncion.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/com/rjconsultores/ventaboletos/entidad/PerfilFuncion.java b/src/com/rjconsultores/ventaboletos/entidad/PerfilFuncion.java index e48dc0ee8..c54f252de 100644 --- a/src/com/rjconsultores/ventaboletos/entidad/PerfilFuncion.java +++ b/src/com/rjconsultores/ventaboletos/entidad/PerfilFuncion.java @@ -127,9 +127,16 @@ public class PerfilFuncion implements Serializable { return false; } PerfilFuncion other = (PerfilFuncion) object; + + if((this.funcionSistema != null && other.funcionSistema != null) && this.perfilfuncionId == null && other.perfilfuncionId == null && this.funcionSistema.equals(other.funcionSistema)){ + return true; + } if ((this.perfilfuncionId == null && other.perfilfuncionId != null) || (this.perfilfuncionId != null && !this.perfilfuncionId.equals(other.perfilfuncionId))) { return false; } + if((this.perfilfuncionId == other.perfilfuncionId) && (this.getFuncionSistema().getFuncionsistemaId() != other.getFuncionSistema().getFuncionsistemaId())) { + return false; + } return true; }