문제

I defined a Content Rule that send an e-mail when deleting an item in my Plone site.

The problem I had is when I choose "Actions/Delete" and Plone shows the floating window asking for a confirmation, the e-mail is already beign sent, even before I confirm, so I receive two e-mails: One when I select "delete" and another one when I confirm it. If I decide not to delete, the e-mail is sent.

Why is Plone sending an e-mail before I confirm the item remove?

  • Plone 4.2.4 (4210)
  • CMF 2.2.7
  • Zope 2.13.19

Thanks

도움이 되었습니까?

해결책

The reason may be that the delete action actually deletes things twice. The first time happens when you select the action and is used to trigger a check for related and linked items that refer to the item you are about to delete. This first 'delete' is then rolled back. The second delete happens after you actually click confirm.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top