add oldcopy of category before updating

This commit is contained in:
Frédéric FRANCE 2019-03-06 18:01:18 +01:00 committed by GitHub
parent 0c2a0c643b
commit 8743b43fdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,6 +81,7 @@ if ($cancel)
// Action mise a jour d'une categorie
if ($action == 'update' && $user->rights->categorie->creer)
{
$object->oldcopy = dol_clone($object);
$object->label = $label;
$object->description = dol_htmlcleanlastbr($description);
$object->color = $color;