You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by de...@apache.org on 2026/06/05 13:20:52 UTC

(ofbiz-framework) branch release24.09 updated: Fixed: Used correct signature of makeValidContext method to prepare context for running the sendMailFromScreen service. (OFBIZ-13388) (#1336)

This is an automated email from the ASF dual-hosted git repository.

vyasdevanshu pushed a commit to branch release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release24.09 by this push:
     new 15c84b0ef0 Fixed: Used correct signature of makeValidContext method to prepare context for running the sendMailFromScreen service. (OFBIZ-13388) (#1336)
15c84b0ef0 is described below

commit 15c84b0ef0c90533c8f00135bc3465643b9b30d8
Author: Devanshu Vyas <62...@users.noreply.github.com>
AuthorDate: Fri Jun 5 18:50:46 2026 +0530

    Fixed: Used correct signature of makeValidContext method to prepare context for running the sendMailFromScreen service. (OFBIZ-13388) (#1336)
    
    Fixed: Used the correct signature of the makeValidContext method to
    prepare the context for running the sendMailFromScreen service.
    (OFBIZ-13388)
    
    Thanks Arashpreet Singh, for reporting the issue and providing the patch
    for the fix. I have improved the code-fix and removed unnecessary
    changes from the patch, and then committed it.
---
 .../org/apache/ofbiz/accounting/invoice/InvoiceServicesScript.groovy    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/invoice/InvoiceServicesScript.groovy b/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/invoice/InvoiceServicesScript.groovy
index cbe4794125..297bcab465 100644
--- a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/invoice/InvoiceServicesScript.groovy
+++ b/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/invoice/InvoiceServicesScript.groovy
@@ -328,7 +328,7 @@ Map cancelInvoice() {
  */
 Map sendInvoicePerEmail() {
     Map emailParams = dispatcher.getDispatchContext()
-            .makeValidContext([*: parameters,
+            .makeValidContext('sendMailFromScreen', 'IN', [*: parameters,
                                xslfoAttachScreenLocation: 'component://accounting/widget/AccountingPrintScreens.xml#InvoicePDF',
                                bodyParameters: [invoiceId: parameters.invoiceId,
                                                 userLogin: parameters.userLogin,