Fix: remove bad fixe

This commit is contained in:
Regis Houssin 2012-08-15 09:15:26 +02:00
parent 48efabc8a4
commit fbb275ee25
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr>
* Copyright (C) 2011 Laurent Destailleur <eldy@users.sourceforge.net>
/* Copyright (C) 2010-2012 Regis Houssin <regis@dolibarr.fr>
* Copyright (C) 2011-2012 Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -436,7 +436,7 @@ abstract class ActionsCardCommon
$res=dol_include_once($dirroot.$module.".php");
if ($res) break;
}
$modCodeClient = new $module($db);
$modCodeClient = new $module;
$this->tpl['auto_customercode'] = $modCodeClient->code_auto;
// We verified if the tag prefix is used
if ($modCodeClient->code_auto) $this->tpl['prefix_customercode'] = $modCodeClient->verif_prefixIsUsed();

View File

@ -1013,7 +1013,7 @@ else
$res=dol_include_once($dirroot.$module.".php");
if ($res) break;
}
$modCodeClient = new $module($db);
$modCodeClient = new $module;
// We verified if the tag prefix is used
if ($modCodeClient->code_auto)
{
@ -1031,7 +1031,7 @@ else
$res=dol_include_once($dirroot.$module.".php");
if ($res) break;
}
$modCodeFournisseur = new $module($db);
$modCodeFournisseur = new $module;
// On verifie si la balise prefix est utilisee
if ($modCodeFournisseur->code_auto)
{