FR 3062553 - Duplicated action in DocAction list for Multiple Role Users
http://sourceforge.net/support/tracker.php?aid=3062553 Thanks to Kitti U
This commit is contained in:
parent
3f6d976b9e
commit
08c2ea68cf
|
@ -51,6 +51,7 @@ import org.compiere.util.Trace;
|
||||||
* @author Jorg Janke
|
* @author Jorg Janke
|
||||||
* @author Karsten Thiemann FR [ 1782412 ]
|
* @author Karsten Thiemann FR [ 1782412 ]
|
||||||
* @author Carlos Ruiz - globalqss - FR [ 1846929 ] - implement ASP
|
* @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 $
|
* @version $Id: MRole.java,v 1.5 2006/08/09 16:38:47 jjanke Exp $
|
||||||
*/
|
*/
|
||||||
public final class MRole extends X_AD_Role
|
public final class MRole extends X_AD_Role
|
||||||
|
@ -2449,7 +2450,7 @@ public final class MRole extends X_AD_Role
|
||||||
params.add(options[i]);
|
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)"
|
+ " 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
|
+ " WHERE a.IsActive='Y' AND a.AD_Client_ID=? AND a.C_DocType_ID=?" // #1,2
|
||||||
+ " AND rl.Value IN ("+sql_values+")"
|
+ " AND rl.Value IN ("+sql_values+")"
|
||||||
|
|
Loading…
Reference in New Issue