Uploaded image for project: 'ActivityInfo'
  1. AI-1644

Enumerated choice ids should be represented as string literals in formula language, not symbols

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker: Requires HOTFIX asap
    • Resolution: Fixed
    • Fix Version/s: 2.15.1154
    • Component/s: Form Designer
    • Labels:
      None

      Description

      If "GENDER" is a single-select with choices with ids t0000000001 (Women) and t0000000002 (Men), then the form-based evaluater expects the formula:

      GENDER==t0000000001

      In which the enum choice id is written as a symbol. This is a little strange because the expression t0000000001 is constant, and so seems that it should be written as a literal, like "t00000000001".

      This expression should be written as

      GENDER=="t0000000001"

      This will affect several components:
      1. The relevancy UI editor needs to produce expressions in this mold
      2. The EqualsFunction needs to handle comparisons between values of type enum and string
      3. The ODK module needs to correctly convert these expressions to XPATH

        TestRail: Results

          Attachments

            Issue links

              Activity

                People

                • Assignee:
                  jamie Jamie Whitehouse
                  Reporter:
                  alex Alexander Bertram
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    TestRail: Cases