Hotfix - Correo - Se añade comprobación de registro borrado al buscar la cuenta de correo saliente #560
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
-Closes #559
Description
Se añade el deleted = 0 a un select sobre la tabla outbound_email que al no estar presente provocaba que, aleatoriamente, se recuperasen los datos del registro borrado provocando el consiguiente error.
Motivation and Context
Corregir la incidencia #559
How To Test This
1.- Desde la vista de detalle de Persona u Organización, clickar sobre la dirección de correo y enviar el mail
2.- Comprobar que el mail sale correctamente
3.- Provocar que haya 2 registros de tipo system en la tabla outbound_emails (uno deleted y el otro activo)
4.- En local, con el debugger, comprobar que la select cambiada sólo devuelve un registro.