From 04f2b04dcf8639a8fb02688d821ec11061f49bf3 Mon Sep 17 00:00:00 2001 From: Grand Philippe Date: Sun, 22 Apr 2012 00:41:13 +0200 Subject: [PATCH] try to fix : shipping specimen model not displayed --- htdocs/admin/expedition.php | 4 ++-- htdocs/expedition/class/expedition.class.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/admin/expedition.php b/htdocs/admin/expedition.php index 2d0fdf18218..aa9259226ab 100644 --- a/htdocs/admin/expedition.php +++ b/htdocs/admin/expedition.php @@ -140,8 +140,8 @@ if ($action == 'specimen') } else { - $mesg=''.$obj->error.''; - dol_syslog($obj->error, LOG_ERR); + $mesg=''.$module->error.''; + dol_syslog($module->error, LOG_ERR); } } else diff --git a/htdocs/expedition/class/expedition.class.php b/htdocs/expedition/class/expedition.class.php index b34c255f61b..d3fd5832a78 100644 --- a/htdocs/expedition/class/expedition.class.php +++ b/htdocs/expedition/class/expedition.class.php @@ -1060,7 +1060,7 @@ class Expedition extends CommonObject // Initialise parametres $this->id=0; - $this->ref = 'SPECIMEN_SHIP'; + $this->ref = 'SPECIMEN'; $this->specimen=1; $this->statut = 1; $this->livraison_id = 0;