Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1738

double-listbox problem in repeaters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1.8, 2.1.9
    • None
    • Blocks: Ajax, Blocks: Forms
    • None
    • Normal
    • Patch available

    Description

      Rendering a multivaluefield using the 'double-listbox' styling fails, when that multivaluefield is contained in a repeater, and Ajax is enabled for the form:

      The 'double-listbox'-styled fields in the repeater stop working as soon as some action, involving a round-trip to the server and a partial re-rendering of the repeater, is being performed (for example adding or deleting a repeater row, validation error on submit...)

      After such a round-trip, a click on any of the double-listbox's UI elements (double-click on an item, click on an option-transfer button) will yield a Javascript error ("optxxxxx is not defined" on Cocoon 2.1.8, and "from.options has no properties" on the current BRANCH_2_1_X)

      The multivaluefield's values will not be submitted correctly afterwards.

      Attachments

        1. forms-lib_snippet.js
          2 kB
          Gabriel Gruber
        2. forms-advanced-field-styling_snippet.xsl
          3 kB
          Gabriel Gruber
        3. ASF.LICENSE.NOT.GRANTED--cocoon-ajax.js.diff
          0.5 kB
          Fabrizio Sitzia
        4. ASF.LICENSE.NOT.GRANTED--forms-advanced-field-styling.xsl.diff
          0.9 kB
          Fabrizio Sitzia
        5. ASF.LICENSE.NOT.GRANTED--forms-lib.js.diff
          0.4 kB
          Fabrizio Sitzia

        Activity

          People

            Unassigned Unassigned
            britzel Fabrizio Sitzia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: