1. 28 Aug, 2018 1 commit
    • Jérome Perrin's avatar
      Category self membership after move and clone · 524b5443
      Jérome Perrin authored
      Categories are member of themselves. When a category is renamed, the membership to self was already preserved thanks to nexedi/erp5@7f2e8eb2
      , but this was not the case when a category was cut and pasted.
      
      There are two different cases:
       * When just created, a category is member of itself because this is the [default behavior](https://lab.nexedi.com/nexedi/erp5/blob/b705495de0f04645b7b3ad3b74c46de00c923876/product/CMFCategory/CategoryTool.py#L1193-1196) for categories not having categories set. In this case, it's dynamic.
       * When category has some categories set ( in `self.categories` ) - this happens for example after being renamed - then behavior is different and `self.categories` has to be updated.
      
      7f2e8eb2 was handling properly the later case after a clone, but not in a cut and paste ( move ) scenario, because in this case "after clone" hook is not called.
      
      The first idea was to move the same hook at another level by overloading `_postCopy` but after some discussion and thinking, it seemed more logical to make sure `CategoryTool.setCategoryList` does not save categories membership to self, which is consistent in the way `CategoryTool.getCategoryList` adds the membership to self dynamically.
      
      This MR brings a few more tests, so that we can claim [#1900](https://nexedi.erp5.net/bug_module/1900) and [#704](https://nexedi.erp5.net/bug_module/704) are tested enough and close these old bugs.
      
      
      /reviewed-on nexedi/erp5!664
      524b5443
  2. 27 Aug, 2018 2 commits
  3. 24 Aug, 2018 3 commits
  4. 23 Aug, 2018 14 commits
  5. 22 Aug, 2018 1 commit
    • Xiaowu Zhang's avatar
      erp5_web_renderjs_ui_test: wait for page loaded · 8aa74de6
      Xiaowu Zhang authored
      this commit should fix random plus button not present issue when open sort editor
      the reason is sort editor is opened before launcher call editor_panel.close()
      so wait for page loaded before open sort editor
      8aa74de6
  6. 21 Aug, 2018 6 commits
  7. 20 Aug, 2018 2 commits
  8. 17 Aug, 2018 6 commits
  9. 16 Aug, 2018 5 commits