Uploaded image for project: 'Lucee Development'
  1. LDEV-1633

Missing Else Segment of Ternary IF threw unrelated error location

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.2.4.37
    • Fix Version/s: 5.2.6.35
    • Labels:
      None
    • Environment:

      Windows 10, IIS 2017 (v1709)

    • Sprint:
      March 2018

      Description

      To summarize my site in quick detail.

      It uses application.cfc's onRequest and includes my site template.

      I was adding something to a page today involving a ternary if and wrote this

      #(CurrentID eq SCANFORID ? " selected")#

      Saved the file and left for a bit. This is just on my testing server so no harm.

      I came back to an error telling me [[Invalid conditional operator}} occurring in the template handler file on the line that includes the file.

      Obviously it was easy to fix, find the ternary in my file and change it to

      #(CurrentID eq SCANFORID ? " selected" : "")#

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              bracketsage Bradley
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: