Fix: missing oldcopy during update

This commit is contained in:
Regis Houssin 2012-06-08 20:27:02 +02:00
parent 59e39b5d91
commit 355cb988b7
3 changed files with 6 additions and 0 deletions

View File

@ -139,6 +139,8 @@ class Product extends CommonObject
//! Contains detail of stock of product into each warehouse //! Contains detail of stock of product into each warehouse
var $stock_warehouse=array(); var $stock_warehouse=array();
var $oldcopy;
/** /**
* Constructor * Constructor

View File

@ -250,6 +250,8 @@ if (empty($reshook))
{ {
if ($object->fetch($id,$ref)) if ($object->fetch($id,$ref))
{ {
$object->oldcopy=dol_clone($object);
$object->ref = $ref; $object->ref = $ref;
$object->libelle = $_POST["libelle"]; $object->libelle = $_POST["libelle"];
$object->description = dol_htmlcleanlastbr($_POST["desc"]); $object->description = dol_htmlcleanlastbr($_POST["desc"]);

View File

@ -139,6 +139,8 @@ class Societe extends CommonObject
var $logo_small; var $logo_small;
var $logo_mini; var $logo_mini;
var $oldcopy;
/** /**
* Constructor * Constructor
* *