Hi,
as per object, I need to retrieve the value of a field before it is changed.
I describe the situation:
I am inside a module, when I create a new record or modify it, a logic_hooks after_save starts which stores some information on another module, so far everything is ok. The problem occurs when that data is modified, so I have to reset the original data depending on the modification of a certain field.
I tried to use the before_save logic_hooks, but it returns the newly changed value and not the pre-existing one.
Am I wrong or is there another method to achieve my goal?
Thanks
I think what you’re looking for is
$bean->fetched_row
in before_save hooks.
Search for that here in the forums to find examples.
Great! It works … thanks a lot
1 Like