You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by nm...@apache.org on 2022/01/24 06:31:10 UTC
[ofbiz-framework] branch release22.01 updated: Improved: Use flexible expander to resolve the area target on call back (OFBIZ-12509) When you use a callback, at this time we haven't to possibility to resolve the area target from the context like this
This is an automated email from the ASF dual-hosted git repository.
nmalin pushed a commit to branch release22.01
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release22.01 by this push:
new 4936f6f Improved: Use flexible expander to resolve the area target on call back (OFBIZ-12509) When you use a callback, at this time we haven't to possibility to resolve the area target from the context like this
4936f6f is described below
commit 4936f6f1451d5a64a2145d7742470947c77a8cb5
Author: Nicolas Malin <ni...@nereide.fr>
AuthorDate: Mon Jan 24 07:16:10 2022 +0100
Improved: Use flexible expander to resolve the area target on call back (OFBIZ-12509)
When you use a callback, at this time we haven't to possibility to resolve the area target from the context like this
<wm:link target="WorkEffortAgreement/delete">
....
<wm:set-callback area-target="${useThisTarget}">
...
</wm-setcallback>
</wm:link>
---
.../widget/src/main/java/org/apache/ofbiz/widget/model/ModelForm.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelForm.java b/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelForm.java
index 3f53cc6..889ba40 100644
--- a/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelForm.java
+++ b/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelForm.java
@@ -2476,7 +2476,7 @@ public abstract class ModelForm extends ModelWidget {
Map<String, String> claims = UtilMisc.toMap(
"areaId", WidgetWorker.getScreenStack(context).resolveScreenAreaId(getAreaId()),
- "areaTarget", getAreaTarget());
+ "areaTarget", getAreaTarget(context));
// Propagate on the callback parameters use by pagination list
Map<String, Object> parameters = WidgetWorker.resolveParametersMapFromQueryString(context);