Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-2104

When using an expression for a new struct-key, the expression itself is used as the key, not it's value

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.1.002
    • Fix Version/s: 4.2.0.000, 4.1.0.011
    • Labels:
      None

      Description

      In the following code:

      <cfset myVar = "keyname" />
      <cfset x = {"#myvar#":1} />
      <cfdump eval=x />

      the struct 'x' will contain one key: "myVar". To my knowledge, it should be "keyname".

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                frinky Paul Klinkenberg
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: