Closed kty0mka closed 2 years ago
Unfortunately, custom values are deleted before _afterdestroy is triggered (in Redmine). So, values are no more available at the moment of processing custom workflow script. I don't see any way how to get them.
Maybe, you can stash them in _beforedestroy for a later usage in _afterdestroy.
@picman I've got the same problem using before_destroy for time_entries. My Custom_Values is always empty. @kty0mka did you find a solution?
You are right. They are gone even in _beforedestroy.
Hi!
I'm trying to retrieve custom values in before_destroy workflow, but get only empty values:
also:
But at the same time I could retrieve custom values with above command directly in rails console:
Summary: when running before_destroy custom values still exist in DB (as expected), I could retrieve them in rails console (as expected), but could not retrieve them in workflow (unexpected).
What am I doing wrong? If there is a way to retrieve custom values in before_delete?