231 views

Description

Unable to update variable when variable is used as condition.

Steps to Reproduce

  1. In Requested Item page, create a custom ui action that uses variables value in condition section. For example: 
    <condition>current.variables.test=='Yes'</condition>
  2. In the Script field, set the variable value and do an update. For example:
    current.variables.test='No';
    current.state=-5;
    current.update();
    action.setRedirectURL(current);
  3. Go back to the Requested Item page.
  4. Click on the newly created ui action. 
    Note that the test variable is not set to "No" value.

Workaround

There are two possible workarounds:

  • Use the if condition inside script field instead of the condition field in ui action.
  • Add one more current.update() before the actual setting variable code.

Related Problem: PRB667961

Seen In

Geneva Patch 4

Fixed In

Istanbul

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2017-06-19 10:02:54
Published:2016-04-26