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; }