[
https://issues.apache.org/jira/browse/OFBIZ-10277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacques Le Roux closed OFBIZ-10277.
-----------------------------------
Resolution: Fixed
Fix Version/s: 16.11.05
17.12.01
Fixed in
trunk r1826797
R17.12, R16.11 r1826798
To test apply the following patch and get to
https://localhost:8443/example/control/FormWidgetExamples, use the "Field8: Javascript event"
{code}
Index: plugins/example/widget/example/FormWidgetExampleForms.xml
===================================================================
--- plugins/example/widget/example/FormWidgetExampleForms.xml (revision 1826589)
+++ plugins/example/widget/example/FormWidgetExampleForms.xml (working copy)
@@ -169,7 +169,7 @@
<field name="field8"
title="${uiLabelMap.ExampleDropDownField8Title}"
event="onchange"
- action="return showErrorAlert('${uiLabelMap.CommonErrorMessage2}','${uiLabelMap.YouChangedTheSelectBoxValue}');"
+ action="alert(getJSONuiLabel('CommonUiLabels', 'CommonErrorMessage2'))"
tooltip="${uiLabelMap.ExampleDropDownField8Tooltip}" tooltip-style="button-text">
<drop-down>
<option key="Y" description="${uiLabelMap.CommonY}"/>
Index: themes/common-theme/webapp/common/js/util/OfbizUtil.js
===================================================================
--- themes/common-theme/webapp/common/js/util/OfbizUtil.js (revision 1826798)
+++ themes/common-theme/webapp/common/js/util/OfbizUtil.js (working copy)
@@ -1055,6 +1055,7 @@
jQuery.ajax({
url: "getJSONuiLabel",
type: "POST",
+ async: false,
data: {"requiredLabel" : requiredLabelStr},
success: function(data) {
returnVal = data;
@@ -1196,3 +1197,67 @@
}
}
}
{code}
> The getJSONuiLabel javascript function is no longer working
> -----------------------------------------------------------
>
> Key: OFBIZ-10277
> URL:
https://issues.apache.org/jira/browse/OFBIZ-10277> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: Trunk, 16.11.04
> Reporter: Jacques Le Roux
> Assignee: Jacques Le Roux
> Priority: Major
> Fix For: 17.12.01, 16.11.05
>
> Attachments: OFBIZ-10277.patch
>
>
> While working on some Ajax stuff I found that the getJSONuiLabel javascript function (and I guess getJSONuiLabels) is no longer working, and that's for a while. It's easy testable by looking at the "Field8: Javascript event" at
https://demo-stable.ofbiz.apache.org/example/control/FormWidgetExamples, trunk demo is same.
> This means that no errors is reported in UI because getJSONuiLabel/s are used by all error report tools, for instance the 50 showErrorAlert calls.
> R15 and R14 have the same issue, R13 can't be tested (no example component) so it's indeed a while this issue exists.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)