IDEMPIERE-5530 - adding ad_client_id to mworkflow cache key (#1625)

This commit is contained in:
matheus-marcelinux 2023-01-05 16:04:33 -03:00 committed by GitHub
parent dd7b63aa0d
commit 34fb9afa05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ public class MWorkflow extends X_AD_Workflow implements ImmutablePOSupport
*/
public static MWorkflow get (Properties ctx, int AD_Workflow_ID)
{
String key = Env.getAD_Language(ctx) + "_" + AD_Workflow_ID;
String key = Env.getAD_Language(ctx) + "_" + Env.getAD_Client_ID(ctx) + "_" + AD_Workflow_ID;
MWorkflow retValue = s_cache.get(ctx, key, e -> new MWorkflow(ctx, e));
if (retValue != null)
return retValue;