Closed joao-guerra closed 2 months ago
I can't reproduce the problem.
Rails.logger.info ">>> Before destroy of TE ##{self.id}"
, After destroy script: Rails.logger.info ">>> After destroy of TE ##{self.id}"
)INFO -- : = Running before_destroy custom workflows for TimeEntry (#873) "#<TimeEntry:0x000077c242651cc0>"
INFO -- : == Running before_destroy custom workflow "c1"
INFO -- : >>> Before destroy of TE #873
INFO -- : = Finished running before_destroy custom workflows for TimeEntry (#873) "#<TimeEntry:0x000077c242651cc0>"
INFO -- : = Running after_destroy custom workflows for TimeEntry (#873) "#<TimeEntry:0x000077c242651cc0>"
INFO -- : == Running after_destroy custom workflow "c1"
INFO -- : >>> After destroy of TE #873
INFO -- : = Finished running after_destroy custom workflows for TimeEntry (#873) "#<TimeEntry:0x000077c242651cc0>"
Hi, thank you for your response.
I dug deeper as we are using a timesheet plugin on the company's redmine and found that the plugin was using the delete method instead of destroy, so the problem was on the timesheet plugin. Changing that plugin to use destroy solves the problem.
Sorry to bother you and thank you again.
Hi, I am using Custom Workflow to synchronise Redmine objects with a third party application.
I track Create, Update and Delete for Issues, Projects, Users and Time |Entries.
All is working fine except when deleting time entries, the before and after destroying code is not being called (I tested this using puts and nothing appears on the log) - The log also doesn't show any call of Custom workflow.
I am using Redmine 5.1.3 with Custom Workflow 2.1.1.
As all is working for the other entities except for destroying on Time Entry, and not even a simple puts is called maybe the destroying objects is not working for Time Entry.