[
https://issues.apache.org/jira/browse/OFBIZ-10277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16398203#comment-16398203 ]
Jacques Le Roux commented on OFBIZ-10277:
-----------------------------------------
I reopened because I tried to call {{getJSONuiLabel('CommonUiLabels', 'CommonErrorMessage2')}} in place of showErrorAlert as it's OOTB and add an {{alert(returnVal);}} just before {{return returnVal;}} in getJSONuiLabel: I get a void alert. So I was right (I tested in js debugger before so I knew the issue was there for getJSONuiLabel) and getJSONuiLabels works but not getJSONuiLabel (which is also called in profile.js and fieldlookup.js)
I attached a patch which fixes the issue.
> 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
> 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)