isomerpages / isomercms-backend

A static website builder and host for the Singapore Government
5 stars 1 forks source link

fix: rearrange subcollections #812

Closed alexanderleegs closed 1 year ago

alexanderleegs commented 1 year ago

This PR fixes a bug in which rearranging the order of a subcollection would something cause collection.yml information to disappear. This issue was caused by us using includes instead of startsWith to find the list of entries which belonged to the subcollection, which subsequently caused related names to disappear (e.g. changing the order of Curriculum would cause Co Curriculum to also match this criteria, and hence Co Curriculum would disappear)