Uploaded image for project: 'Java Script UI (App and Dialog Fields)'
  1. Java Script UI (App and Dialog Fields)
  2. JSFIELD-11

i18n values are not stored in a tabbed form

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 1.2
    • 1.1.7
    • None

    Description

      Steps to reproduce

      1. Make use of the following dialog:
        form: 
          implementationClass: info.magnolia.ui.javascript.form.FormViewWithChangeListener
          $type: tabbedForm
          tabs: 
            tabOne: 
              label: Tab-1
              fields: 
                image: 
                  $type: damLinkField
                title: 
                  $type: textField
                  i18n: true          height: 150
                  required: true        multiValueFieldTest: 
                  $type: jcrMultiValueField
                  i18n: true          field: 
                    $type: textField
            tabTwo: 
              label: Tab-2
              fields: 
                multiValueFieldTestTab2:
                  $type: jcrMultiValueField
                  i18n: true          field: 
                    $type: textField 
      2.  Open tabbed dialog with jcrMultiValueField and add values for all languages (f.e. EN and DE)
      3. Save changes
      4. Open dialog again
      5. Change language

      Expected results

      Values are saved for both languages

      Actual results

      Values are only saved for first language

      Development notes

      This is not happening with default UI, for example, the following dialog would produce expected results:

      form:
        properties:
          image:
            $type: damLinkField
          title:
            $type: textField
            i18n: true
            height: 150
            required: true
          multiValueFieldTest:
            $type: jcrMultiValueField
            i18n: true
            field:
              $type: textField
        layout:
          $type: tabbedLayout
          tabs:
            tab1:
              fields:
                - name: title
                - name: multiValueFieldTest
            tab2:
              fields:
                - name: image
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                rdrangovski Riste Drangovski
                jayala Jonathan Ayala
                Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: