Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-12349

Update the document title after rename or copy if the title is the same as the document name

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.2-milestone-1
    • Fix Version/s: 7.2-milestone-3
    • Component/s: Old Core
    • Labels:
    • Tests:
      Unit
    • Development Priority:
      High
    • Difficulty:
      Easy
    • Documentation:
      N/A
    • Similar issues:

      Description

      Steps to reproduce:

      1. Create xwiki/bin/view/1/2/ space
      2. Put this code into a terminal page, then click Save & View

      #set ($source = $services.model.resolveSpace('1.2'))
      $services.refactoring.rename($source, '3').join()
      

      3. Check the space macro from Main.WebHome. You'll see that the renaming worked, so you'll have the space "1.3"
      4. Click on it

      You'll get something like in the picture from attachment.

      The URL changed according to the new name, but the document title si still "2".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mflorea Marius Dumitru Florea
                Reporter:
                gabriela.smeria Gabriela Smeria
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 2 hours
                  2h