Fixes issue 29245: An email related with the alert is sent to inactive users
authorJavier Etxarri <javier.echarri@openbravo.com>
Wed, 11 Mar 2015 13:56:36 +0100
changeset 26162 75c230345062
parent 26161 3610bd347abc
child 26163 5a9f94c18c9b
Fixes issue 29245: An email related with the alert is sent to inactive users
src/org/openbravo/erpCommon/ad_process/AlertProcess.java
--- a/src/org/openbravo/erpCommon/ad_process/AlertProcess.java	Wed Mar 11 10:42:05 2015 +0100
+++ b/src/org/openbravo/erpCommon/ad_process/AlertProcess.java	Wed Mar 11 13:56:36 2015 +0100
@@ -414,6 +414,9 @@
                   if (targetUser == null) {
                     continue;
                   }
+                  if (!targetUser.isActive()) {
+                	  continue;
+                  }
                   final Client targetUserClient = targetUser.getClient();
                   final String targetUserClientLanguage = (targetUserClient.getLanguage() != null ? targetUserClient
                       .getLanguage().getLanguage() : null);