Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.48k stars 2.8k forks source link

Update oldcopy in task #31986

Closed vmaury closed 4 days ago

vmaury commented 4 days ago

FIX #31985 oldcopy not set

Example of updating oldcopy when fetching task object.

It would be very usefull to update oldcopy for all objects

hregis commented 4 days ago

@vmaury and what will happen if you have several triggers or hooks which modify the object and which do a fetch!! the original oldcopy will no longer be valid!! the oldcopy can't be in fetch function !!

vmaury commented 4 days ago

@see last comments in #31985