details: /erp/devel/pi/rev/9dd8352caacc
changeset: 11395:9dd8352caacc
user: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
date: Tue Mar 29 16:31:41 2011 +0200
summary: [OBUIAPP] Not consider deactivated alert rules on alert counter.
diffstat:
modules/org.openbravo.client.application/src/org/openbravo/client/application/AlertActionHandler.java
| 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r a162bb7a67d5 -r 9dd8352caacc
modules/org.openbravo.client.application/src/org/openbravo/client/application/AlertActionHandler.java
---
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/AlertActionHandler.java
Tue Mar 29 15:55:33 2011 +0200
+++
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/AlertActionHandler.java
Tue Mar 29 16:31:41 2011 +0200
@@ -87,7 +87,8 @@
// select the alert rules
final String hql = "select e.alertRule from " +
AlertRecipient.ENTITY_NAME
- + " e where e.userContact.id=? " + " or (e.userContact.id = null and
e.role.id = ?)";
+ + " e where e.alertRule.active = true and (e.userContact.id=? "
+ + " or (e.userContact.id = null and e.role.id = ?))";
final Query qry = OBDal.getInstance().getSession().createQuery(hql);
qry.setParameter(0, OBContext.getOBContext().getUser().getId());
qry.setParameter(1, OBContext.getOBContext().getRole().getId());
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits