You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mr...@apache.org on 2026/09/12 14:11:55 UTC

(ofbiz-framework) branch release24.09 updated: Fixed: updateBudgetStatus invalid-transition error omits the requested status (OFBIZ-13558)

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

mridulpathak 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 4786899caa Fixed: updateBudgetStatus invalid-transition error omits the requested status (OFBIZ-13558)
4786899caa is described below

commit 4786899caad770b3e3e04da9f8b120daff56b93b
Author: Mridul Pathak <mr...@gmail.com>
AuthorDate: Sat Sep 12 16:46:18 2026 +0530

    Fixed: updateBudgetStatus invalid-transition error omits the requested status (OFBIZ-13558)
    
    The CommonErrorNoStatusValidChange label references both ${lookedUpValue.statusId} and ${parameters.statusId}, but label() passes its context map directly to FlexibleStringExpander with no merging - only lookedUpValue was supplied, so the requested status always rendered blank (e.g. "status change from [BG_APPROVED] to [] is not allowed"). Adding parameters to the context map lets both placeholders resolve.
---
 .../groovy/org/apache/ofbiz/accounting/budget/BudgetServices.groovy     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/budget/BudgetServices.groovy b/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/budget/BudgetServices.groovy
index 22e56f4b57..d4000690db 100644
--- a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/budget/BudgetServices.groovy
+++ b/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/budget/BudgetServices.groovy
@@ -35,7 +35,7 @@ Map updateBudgetStatus() {
                     .queryOne()
             if (!statusValidChange) {
                 return error(label('CommonUiLabels', 'CommonErrorNoStatusValidChange',
-                        [lookedUpValue: [statusId: budgetStatus.statusId]]))
+                        [lookedUpValue: [statusId: budgetStatus.statusId], parameters: parameters]))
             }
             result = run service: 'createBudgetStatus', with: parameters
         }