Merge pull request #10761 from frederic34/patch-4

add oldcopy of category before updating
This commit is contained in:
Laurent Destailleur 2019-03-07 12:34:04 +01:00 committed by GitHub
commit 3e40451709
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;