XWiki Platform
  1. XWiki Platform
  2. XWIKI-7439

Category becomes invisible when adding a subcategory with the same name as parent category

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.5-milestone-1
    • Component/s: {Unused} Blog
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Steps to reproduce:

      • login
      • go to Blog Space
      • on the Blog Categories Panel from left, click "Edit Categories"
      • add a subcategory to News called News. Basically a category with the same name as its parent name

      You will see that News category (parent) will disappear along with its subcategory.

      This happens on Chrome 16 and Firefox 9.0.1. Does not happen on IE8 and IE9

      We should have a Selenium 2 test for this after it is fixed

        Issue Links

          Activity

          Hide
          Sergiu Dumitriu added a comment -

          Fixed in 10655f5

          Show
          Sergiu Dumitriu added a comment - Fixed in 10655f5
          Hide
          Marius Dumitru Florea added a comment -

          The root cause is the same as for XWIKI-7268: XWikiDocument#readFromTemplate checks for empty content, and the content of the category page is empty since we introduced the new sheet system, which doesn't rely on the include macro any more.

          Show
          Marius Dumitru Florea added a comment - The root cause is the same as for XWIKI-7268 : XWikiDocument#readFromTemplate checks for empty content, and the content of the category page is empty since we introduced the new sheet system, which doesn't rely on the include macro any more.

            People

            • Assignee:
              Sergiu Dumitriu
              Reporter:
              Sorin Burjan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

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