sheadawson/silverstripe-zengallery — pull request #1 by rodneyway (2014-04-29 06:46:29+00:00)
Title: Removed call to create Image Folder from getCMSFields. Was causing a new...

... page record to be created, of type page, with the deleted page ID upon the deletion of a draft page.This in turn leads to the page being orphaned in the SiteTree and not visible in the expected location.

This functionality is already covered by onAfterWrite()