Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-3673

Product option value label is not updated with correct price when using Single Selection field type

    Details

      Description

      When using Single selection DDM form field type to render product option values with relative price, selecting new option value results in 

       

      java.lang.ClassCastException: java.lang.String cannot be cast to com.liferay.portal.kernel.json.JSONArrayjava.lang.ClassCastException: java.lang.String cannot be cast to com.liferay.portal.kernel.json.JSONArray at com.liferay.dynamic.data.mapping.form.evaluator.internal.functions.CallFunction._getStringValue(CallFunction.java:323) at com.liferay.dynamic.data.mapping.form.evaluator.internal.functions.CallFunction.setDDMFormFieldOptions(CallFunction.java:235) at com.liferay.dynamic.data.mapping.form.evaluator.internal.functions.CallFunction.setDDMFormFieldOptions(CallFunction.java:272) at com.liferay.dynamic.data.mapping.form.evaluator.internal.functions.CallFunction.setDDMFormFieldValues(CallFunction.java:309) at com.liferay.dynamic.data.mapping.form.evaluator.internal.functions.CallFunction.evaluate(CallFunction.java:87)

       

      A possible workaround is to use Select from list  field type for showing product option values, where options value labels are correctly updated depending on the currently selected option value!

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lorenzo.lapescara Lorenzo La Pescara
              Reporter:
              matija.petanjek Matija Petanjek
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  2.1.1