From 744329b375cdc081a2575de766a7ef0b72e15a56 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 13 Aug 2013 22:14:17 +0800 Subject: [PATCH] IDEMPIERE-1267 Temp password from "Forgot My Password" does not work. Accept patch from Richard Morales Herrera. --- .../src/org/adempiere/webui/panel/ResetPasswordPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/ResetPasswordPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/ResetPasswordPanel.java index af42ab737f..13a620b5c9 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/ResetPasswordPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/ResetPasswordPanel.java @@ -492,7 +492,7 @@ public class ResetPasswordPanel extends Window implements EventListener protected boolean sendEmail(MUser to, String newPassword) { - MClient client = MClient.get(m_ctx, to.getAD_Client_ID()); + MClient client = MClient.get(m_ctx, 0);//change by: IDEMPIERE-1267 Temp password from "Forgot My Password" does not work StringBuilder sql = new StringBuilder("SELECT R_MailText_ID "); sql.append("FROM R_MailText ");