Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-922

Make multi-value script functions work correctly

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 1.3.2
    • Fix Version/s: 2.0
    • Component/s: Scripting
    • Labels:
      None

      Description

      Multi-value script functions (or at least some like $inmulti, $setmulti) currently work by converting to a string and then working on the string. This has two problems:

      a. They handle any string with a semi-colon in it incorrectly;

      b. $Inmulti searches for the substring in the multi-value converted to a string, which is not the same as searching for one of the values matching exactly. (For the latter you should use $in rather than $inmulti.)

      As a real example:

      $inmulti(%artists%,Bob Marley) will be true if %artists% =  ['Bob Marley','The Wailers'] or ['Bob Marley and The Wailers'] which is not going to work as expected.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sophist Sophist
                Reporter:
                sophist Sophist
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: