From 08c2ea68cf0f1700f707dceee57128f9ab7e44d1 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 8 Mar 2011 11:48:08 -0500 Subject: [PATCH] FR 3062553 - Duplicated action in DocAction list for Multiple Role Users http://sourceforge.net/support/tracker.php?aid=3062553 Thanks to Kitti U --- org.adempiere.base/src/org/compiere/model/MRole.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/model/MRole.java b/org.adempiere.base/src/org/compiere/model/MRole.java index 0678419b1e..83cbea199b 100644 --- a/org.adempiere.base/src/org/compiere/model/MRole.java +++ b/org.adempiere.base/src/org/compiere/model/MRole.java @@ -51,6 +51,7 @@ import org.compiere.util.Trace; * @author Jorg Janke * @author Karsten Thiemann FR [ 1782412 ] * @author Carlos Ruiz - globalqss - FR [ 1846929 ] - implement ASP + * @contributor KittiU - FR [ 3062553 ] - Duplicated action in DocAction list for Multiple Role Users * @version $Id: MRole.java,v 1.5 2006/08/09 16:38:47 jjanke Exp $ */ public final class MRole extends X_AD_Role @@ -2449,7 +2450,7 @@ public final class MRole extends X_AD_Role params.add(options[i]); } // - final String sql = "SELECT rl.Value FROM AD_Document_Action_Access a" + final String sql = "SELECT DISTINCT rl.Value FROM AD_Document_Action_Access a" + " INNER JOIN AD_Ref_List rl ON (rl.AD_Reference_ID=135 and rl.AD_Ref_List_ID=a.AD_Ref_List_ID)" + " WHERE a.IsActive='Y' AND a.AD_Client_ID=? AND a.C_DocType_ID=?" // #1,2 + " AND rl.Value IN ("+sql_values+")"