Skip to content

charcoal-object 0.8.1

Latest
Compare
Choose a tag to compare
@mcaskill mcaskill released this 30 Jan 18:18
0.8.1
cfead6c

Complete commits list: 0.8.0.1...0.8.1

Summary:

  • Improve Hierarchical mixin:

    • Added method hasMasterObject().
    • Added methods loadHierarchy() and loadSiblings().
  • Fix missing orphaned descendants in HierarchicalCollection:

    When collection is displayed on one page, orphaned descendants should be displayed.

    Previously, they were only displayed in pagination was enabled.

  • Fix bad hierarchy repair in HierarchicalCollection:

    • Set master to null instead of 0.
  • Filter argument of HierarchicalTrait::setMaster():

    • Fix edge case where hasMaster() compares 0 to null.
    • Reset masterObject when master changes to avoid conflicts.