[ 1714824 ] Document Workflow enhancement
- Bug in filtering workflow activities for user.
This commit is contained in:
parent
cc75a311a9
commit
7ddb37ce99
|
@ -277,7 +277,7 @@ public class WFActivity extends CPanel
|
||||||
+ " a.AD_User_ID=?" // #1
|
+ " a.AD_User_ID=?" // #1
|
||||||
// Invoker (if no invoker = all)
|
// Invoker (if no invoker = all)
|
||||||
+ " OR EXISTS (SELECT * FROM AD_WF_Responsible r WHERE a.AD_WF_Responsible_ID=r.AD_WF_Responsible_ID"
|
+ " OR EXISTS (SELECT * FROM AD_WF_Responsible r WHERE a.AD_WF_Responsible_ID=r.AD_WF_Responsible_ID"
|
||||||
+ " AND COALESCE(r.AD_User_ID,0)=0 AND (a.AD_User_ID=? OR a.AD_User_ID IS NULL))" // #2
|
+ " AND COALESCE(r.AD_User_ID,0)=0 AND COALESCE(r.AD_Role_ID,0)=0 AND (a.AD_User_ID=? OR a.AD_User_ID IS NULL))" // #2
|
||||||
// Responsible User
|
// Responsible User
|
||||||
+ " OR EXISTS (SELECT * FROM AD_WF_Responsible r WHERE a.AD_WF_Responsible_ID=r.AD_WF_Responsible_ID"
|
+ " OR EXISTS (SELECT * FROM AD_WF_Responsible r WHERE a.AD_WF_Responsible_ID=r.AD_WF_Responsible_ID"
|
||||||
+ " AND r.AD_User_ID=?)" // #3
|
+ " AND r.AD_User_ID=?)" // #3
|
||||||
|
|
Loading…
Reference in New Issue