add oldcopy of category before updating
This commit is contained in:
parent
0c2a0c643b
commit
8743b43fdb
@ -81,6 +81,7 @@ if ($cancel)
|
|||||||
// Action mise a jour d'une categorie
|
// Action mise a jour d'une categorie
|
||||||
if ($action == 'update' && $user->rights->categorie->creer)
|
if ($action == 'update' && $user->rights->categorie->creer)
|
||||||
{
|
{
|
||||||
|
$object->oldcopy = dol_clone($object);
|
||||||
$object->label = $label;
|
$object->label = $label;
|
||||||
$object->description = dol_htmlcleanlastbr($description);
|
$object->description = dol_htmlcleanlastbr($description);
|
||||||
$object->color = $color;
|
$object->color = $color;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user