- context.editPresentationPage(form.get('presentation_page', '')) and \
- context.setStatus(True, 'Saved changes.') and \
- context.setRedirect(context, 'object/view', ajax=ajax) :
- return
+ context.editPresentationPage(form.get('presentation_page', '')) and \
+ context.setStatus(True, 'Saved changes.') :
+ attachments.removeUnusedAttachments(context.presentation_page)
+ return context.setRedirect(context, 'object/view', ajax=ajax)