Fix: missing oldcopy during update
This commit is contained in:
parent
59e39b5d91
commit
355cb988b7
@ -138,6 +138,8 @@ class Product extends CommonObject
|
||||
|
||||
//! Contains detail of stock of product into each warehouse
|
||||
var $stock_warehouse=array();
|
||||
|
||||
var $oldcopy;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@ -250,6 +250,8 @@ if (empty($reshook))
|
||||
{
|
||||
if ($object->fetch($id,$ref))
|
||||
{
|
||||
$object->oldcopy=dol_clone($object);
|
||||
|
||||
$object->ref = $ref;
|
||||
$object->libelle = $_POST["libelle"];
|
||||
$object->description = dol_htmlcleanlastbr($_POST["desc"]);
|
||||
|
||||
@ -138,6 +138,8 @@ class Societe extends CommonObject
|
||||
var $logo;
|
||||
var $logo_small;
|
||||
var $logo_mini;
|
||||
|
||||
var $oldcopy;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
||||
Loading…
Reference in New Issue
Block a user