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

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

View File

@ -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"]);

View File

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