-
Vincent Pelletier authored
This fixes a bug introduced by recent possibility to call interaction workflow methods in beforeCommitHooks. Example scenario of this bug: - create an activity - trigger an interaction workflow action set to happen before commit, and which creates an activity - commit transaction In beforeCommitHooks: - activity will get pushed to its queue - interaction will trigger, creating an activity, causing ActivityBuffer to register itself again. - both activities will get pushed to their queue (both the already-pushed one and the new one, since ActivityBuffer does its cleanup only at transaction commit). So we get 3 activities, where 2 were expected, and those numbers get worse very quickly (!n behaviour, n being the number of registered interactions). git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24579 20353a03-c40f-0410-a6d1-a30d3c3de9de
81a35e3d