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

double-listbox problem in repeaters

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users

          People

            Unassigned Unassigned
            britzel Fabrizio Sitzia

            Dates

              Created:
              Updated:

              Slack

                Issue deployment