[
https://issues.apache.org/jira/browse/OFBIZ-10103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kyra Pritzel-Hentley updated OFBIZ-10103:
-----------------------------------------
Attachment: OFBIZ-10103_miscAjaxFunctions.getDependentDropdownValues_refactoring.patch
This Patch does two things. First it is made sure that option values in the html tags, which are gathered through javascript, are not seperated into multiple values. This will happen if the value includes a white space. The single quotation marks are added fix this small bug. Second the patch adds a functionality which makes it possible to use a list of paramKeys. In that way, a select box can now be dependent on the values of multiple other select boxes.
> Useful parameter usage extension and small fix of getDependentDropdownValues in miscAjaxFunctions.js
> ----------------------------------------------------------------------------------------------------
>
> Key: OFBIZ-10103
> URL:
https://issues.apache.org/jira/browse/OFBIZ-10103> Project: OFBiz
> Issue Type: Improvement
> Components: themes
> Reporter: Kyra Pritzel-Hentley
> Priority: Minor
> Attachments: OFBIZ-10103_miscAjaxFunctions.getDependentDropdownValues_refactoring.patch
>
>
> * When getting the dependant dropdown paramKeys, it would be nice to have the option to specify multiple parameters in case the dropdown field is dependant of multiple other dropdown fields.
> * Single quotes should be added to the code in the following way:
> {code:java}
> optionList += "<option value = " + values[1] + " >" + values[0] + "</option>";
> {code}
> to
> {code:java}
> optionList += "<option value = '" + values[1] + "' >" + values[0] + "</option>";
> {code}
> Without the single quotes, values which have an empty space will be read as two seperate values instead of one.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)