Sorting of tables in Confluence with dynamically changed contents results in phantom rows

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Medium
    • None
    • Affects Version/s: 8.5.5
    • Component/s: Editor - Core
    • None
    • Severity 3 - Minor

      Issue Summary

      This is reproducible on Data Center: Yes

      Steps to Reproduce

      1. Install ConfiForms app (it was reproducible on Confluence 8.5.5)- [ConfiForms - Data Forms & Workflows for Confluence | Atlassian Marketplace|https://marketplace.atlassian.com/apps/1211860/confiforms-data-forms-workflows-for-confluence?hosting=datacenter&tab=overview]
      1. Create a page in Confluence and use the storage format provided below
        <ac:structured-macro ac:macro-id="76a00625-bf95-4237-b81a-2a23ca493b91" ac:name="confiform" ac:schema-version="1">
          <ac:parameter ac:name="formName">form</ac:parameter>
          <ac:rich-text-body>
            <ac:structured-macro ac:macro-id="d92dcf70-8b4d-4692-8d22-4d6db42dfad4" ac:name="confiform-entry-register" ac:schema-version="1">
              <ac:rich-text-body>
                <p>
                  <br/>
                </p>
              </ac:rich-text-body>
            </ac:structured-macro>
            <p>
              <ac:structured-macro ac:macro-id="0ac6f3e5-2be3-422f-9e7a-ea2464116fb6" ac:name="confiform-field-definition" ac:schema-version="1">
                <ac:parameter ac:name="fieldName">t</ac:parameter>
                <ac:parameter ac:name="fieldLabel">t</ac:parameter>
                <ac:parameter ac:name="type">text</ac:parameter>
              </ac:structured-macro>
            </p>
            <p>
              <ac:structured-macro ac:macro-id="931b17e8-5d75-4911-830b-c8876414ef82" ac:name="confiform-field-definition" ac:schema-version="1">
                <ac:parameter ac:name="fieldName">ta</ac:parameter>
                <ac:parameter ac:name="fieldLabel">ta</ac:parameter>
                <ac:parameter ac:name="type">textarea</ac:parameter>
              </ac:structured-macro>
            </p>
          </ac:rich-text-body>
        </ac:structured-macro>
        <ac:structured-macro ac:macro-id="cb96f471-da74-44f2-8443-5ea1d8fac043" ac:name="confiform-table" ac:schema-version="1">
          <ac:parameter ac:name="formName">form</ac:parameter>
          <ac:rich-text-body>
            <ac:structured-macro ac:macro-id="6963a089-70a6-4812-920e-82d5f2b46c36" ac:name="confiform-entry-edit" ac:schema-version="1">
              <ac:parameter ac:name="inline">true</ac:parameter>
              <ac:parameter ac:name="showCopy">true</ac:parameter>
              <ac:parameter ac:name="compactMode">true</ac:parameter>
              <ac:rich-text-body>
                <p>
                  <br/>
                </p>
              </ac:rich-text-body>
            </ac:structured-macro>
            <p>
              <br/>
            </p>
          </ac:rich-text-body>
        </ac:structured-macro> 

       

      1. Add a few records - as you like
      1. Then on the table, try sorting and then click on the Edit button and change and save some value
      1. Try table sorting again

      Expected Results

      It is expected that the sorting has happened, and although the classification has changed, no new items will be added to the table.

      Actual Results

      As can be seen in the following video, the same behavior was noticed when we were conducting some tests in our instance, which is the fact that if you change the table dynamically and then retry the sorting, you will see an initial row reappear.

      This can be noticed in the following video:

      https://recordit.co/ZxYlCmaVGu

      Workaround

      As a workaround, the extra rows that reappear need to be manually deleted.

            Assignee:
            Unassigned
            Reporter:
            Vinicius Benedini
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: