mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 16:42:17 +03:00
13adaec6e7
closes #5913 Sitemap deletion is based on the page.unpublished event. The previous logic was always sending post.unpublished instead. If page or post event is triggered is based on the ‘page’ attribute of the model. When the destroyed handler all attributes are already cleared from the model which makes this logic always fall back to post. The fix is to move to the destroying event which still has all the model values in place. |
||
---|---|---|
.. | ||
model_app-fields_spec.js | ||
model_app-settings_spec.js | ||
model_apps_spec.js | ||
model_permissions_spec.js | ||
model_posts_spec.js | ||
model_roles_spec.js | ||
model_settings_spec.js | ||
model_tags_spec.js | ||
model_users_spec.js |