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

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


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

commit 000f9f06efacd1ecfa4b3b7e2dfb5be409ea2b6a
Author: Devanshu Vyas <[email protected]>
AuthorDate: Mon Jun 1 14:18:58 2026 +0530

    Fixed: Used correct signature of makeValidContext method to prepare context 
for running the sendMailFromScreen service. (OFBIZ-13388) (#1302)
    
    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.
    
    Co-authored-by: Devanshu Vyas <[email protected]>
---
 .../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 eb9f75431e..30aa21468f 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,

Reply via email to