Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-2073

Hypenated contentNode names cause problems with some controls

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • None
    • 3.5.4
    • templating
    • None
    • Windows Server 2003, Firefox 2.0.0.12, Magnolia 3.54EE

    Description

      When using the date control in a dialog, I have configured it as
      follows:

      Date-interview
      controlType date String
      description Date of Interview String
      label Date of Interview String
      name date-interview String
      time false String
      type Date String

      If you try to open the dialog control and enter a date though, you get the following javascript errors:
      missing ; before statement
      var cal_butt_date-3 = Calendar.setup({\n

      missing ; before statement
      mgnlShiftPushButtonClick(this);cal_butt_date-3.show()

      This problem seems to go away if you change the value of the 'name' node to anything without a '-' in it. So for, example 'dateinterview' is fine.

      There is also a similar problem when using hyphenated-names with the fckEditor control.

      I haven't looked at this with other controls yet.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              pbaerfuss Philipp Bärfuss
              cja47 Chris Allan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD