Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-67845

Multiple copies of a variable with the same name in the new template editor will not save until editing and saving each copy

    XMLWordPrintable

Details

    Description

      Issue Summary

      Multiple Template variables with the same name will block saving updates to the template when editing an existing one.

      Environment

      New editor for templates.

      Steps to Reproduce

      Replication Method #1

      • Create a new template.
      • Create a new variable, then add another instance of that same variable somewhere else in the template.
      • Save the template.
      • Edit that template.
      • Make no changes, then click "Save"

      Replication Method #2

      These steps require using two different methods of creating multiple instances of a variable.

      • If you copy a variable from the template, then delete everything on the template page, then paste the variable many times, it will let you save. but if you paste that variable, then use the macro menu and add the New Variable macro with the same name, it won't let you save.
      • Alternatively, if you start with a clean template and you use the macro menu to create a variable, you can use that method infinitely for the same variable name, and it would allow you to save. but if you add a new variable from the macro menu, then copy paste that macro anywhere, it won't let you save.

      Expected Results

      The page saves normally.

      Actual Results

      The page does not save, and this error pops up:

      Can't save changes

      Multiple template variables which have the same name "Test" but different parameters.

      (Optional - If Necessary)

      Workaround

      Editing and "saving" each of the duplicated variables will fix the issue that causes the editor to think they have different parameters, and will allow saving of the page, however, it will only allow it for that particular save.

      Attachments

        Activity

          People

            rbandzar ro🐝n
            jlong@atlassian.com Jared Long
            Votes:
            20 Vote for this issue
            Watchers:
            24 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: