Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018680Openbravo ERP01. General setuppublic2011-10-04 09:262011-10-25 16:51
jecharri 
egoitz 
urgentmajoralways
closedfixed 
5
pi 
3.0MP53.0MP5 
Google Chrome
Core
No
0018680: Alert recipient work different when you put only the role or user
Alert recipient work different when you put only the role or user.
When you put the role with the same client to the alert, all the user with this role receive an email (with the check of Send Email checked obiusly), it doesn't matter if the users are from different client.
But if you put an user and this user is from different client to the alert definition, this user doesn't receive any mail.
Create an alert:
-SQL:select c_invoice_id as referencekey_id,
       '0' as ad_role_id,
       null as ad_user_id,
       'esto es una prueba' as description,
       'Y' as isActive,
        ad_org_id,
        ad_client_id,
        now() as created,
        '0' as createdBy,
        now() as updated,
        '0' as updatedBy,
        ad_column_identifier('C_invoice', C_invoice_id, 'es_ES') AS RECORD_ID, posted
   FROM C_invoice
GROUP BY C_invoice_id, posted, ad_client_id, ad_org_id
order by c_invoice_id desc limit 2

Go to tab alert recipient and select Openbravo Admin.
Check the checkbox Send Email.
Execute the alert background porcess
See that all user of this role receive an email.
Now put Openbravo user like end user.
Run alert Process
You will not receive any mail.
In file AlertProcess_data.xsql delete the line:

and ar.ad_client_id = u.ad_client_id
No tags attached.
depends on backport 00186812.50MP35 closed egoitz Alert recipient work different when you put only the role or user 
Issue History
2011-10-04 09:26jecharriNew Issue
2011-10-04 09:26jecharriAssigned To => jonalegriaesarte
2011-10-04 09:26jecharriWeb browser => Google Chrome
2011-10-04 09:26jecharriModules => Core
2011-10-04 09:26jecharriResolution time => 1320447600
2011-10-04 09:28jecharriWeb browserGoogle Chrome => Google Chrome
2011-10-04 09:28jecharriDescription Updatedbug_revision_view_page.php?rev_id=2778#r2778
2011-10-04 09:28jecharriSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=2780#r2780
2011-10-04 09:28jecharriStatusnew => scheduled
2011-10-04 09:28jecharrifix_in_branch => pi
2011-10-19 09:13jonalegriaesarteAssigned Tojonalegriaesarte => egoitz
2011-10-20 11:30hgbotCheckin
2011-10-20 11:30hgbotNote Added: 0041948
2011-10-20 11:30hgbotStatusscheduled => resolved
2011-10-20 11:30hgbotResolutionopen => fixed
2011-10-20 11:30hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/65a62d9914b03ddbaccfae493edd2de7750a628d [^]
2011-10-23 13:42hudsonbotCheckin
2011-10-23 13:42hudsonbotNote Added: 0042026
2011-10-25 16:51jecharriNote Added: 0042096
2011-10-25 16:51jecharriStatusresolved => closed
2011-10-25 16:51jecharriFixed in Version => 3.0MP5

Notes
(0041948)
hgbot   
2011-10-20 11:30   
Repository: erp/devel/pi
Changeset: 65a62d9914b03ddbaccfae493edd2de7750a628d
Author: Jon Alegría <jon.alegria <at> openbravo.com>
Date: Thu Oct 20 11:27:56 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/65a62d9914b03ddbaccfae493edd2de7750a628d [^]

Fixes issue 0018680: Alert recipient work different when you put only the role
or user

---
M src/org/openbravo/erpCommon/ad_process/AlertProcess_data.xsql
---
(0042026)
hudsonbot   
2011-10-23 13:42   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/35bf0a7aa166 [^]

Maturity status: Test
(0042096)
jecharri   
2011-10-25 16:51   
Verified