Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-4932

Not getting right behavior of use-when when using in multi

    XMLWordPrintableJSON

Details

    Description

      The problem is that on multi forms the bshInterpreter gets pushed to higher levels on the context stack when iterating the form rows.
      What is intended in the code is to reset the bshInterpreter (this.resetBshInterpreter(context) for each row iteration, this reset translates into a key object being removed from context, this context is stored in a stack data structure. The removal assumes the value will always be at level 0, yet what happens is that the value resides at a higher level.
      The fix is to perform the removal prior to context modification, this way the bshInterpereter object would be at level 0 upon removal.

      Attachments

        1. OFBIZ-4932_MultiLListUseWhen.patch
          0.8 kB
          Daniel Riquelme

        Activity

          People

            jleroux Jacques Le Roux
            driquelme Daniel Riquelme
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: