From 1b19fddbc62243ca660908d4988ea1555793ea90 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 8 Jun 2012 20:27:02 +0200 Subject: [PATCH] Fix: missing oldcopy during update --- htdocs/product/class/product.class.php | 2 ++ htdocs/product/fiche.php | 2 ++ htdocs/societe/class/societe.class.php | 2 ++ 3 files changed, 6 insertions(+) diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index afd40ee2c36..30dcb895027 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -138,6 +138,8 @@ class Product extends CommonObject //! Contains detail of stock of product into each warehouse var $stock_warehouse=array(); + + var $oldcopy; /** diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index ebeea2e9bae..171587cecd0 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -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"]); diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 1df100f1ba5..1094d4a6187 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -138,6 +138,8 @@ class Societe extends CommonObject var $logo; var $logo_small; var $logo_mini; + + var $oldcopy; /** * Constructor