From 64074305d3b851155f9c37bb3c348a620f0e7c59 Mon Sep 17 00:00:00 2001 From: BENKE Charles Date: Tue, 18 Feb 2014 15:22:45 +0100 Subject: [PATCH 1/2] Update fiche.php double line --- htdocs/fichinter/fiche.php | 1 - 1 file changed, 1 deletion(-) diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index e40d2b44daa..59359ec2b3b 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -31,7 +31,6 @@ require_once DOL_DOCUMENT_ROOT.'/fichinter/class/fichinter.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/modules/fichinter/modules_fichinter.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/fichinter.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php'; -require_once DOL_DOCUMENT_ROOT . '/core/class/html.formcontract.class.php'; if (! empty($conf->projet->enabled)) { From 05865a79782f3d6d985be1bda77717fa403d2285 Mon Sep 17 00:00:00 2001 From: BENKE Charles Date: Tue, 18 Feb 2014 15:49:16 +0100 Subject: [PATCH 2/2] Update fiche.php somme other error --- htdocs/fichinter/fiche.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index 59359ec2b3b..66ebc3733be 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -857,7 +857,8 @@ if (! empty($conf->global->MAIN_DISABLE_CONTACTS_TAB) && $user->rights->ficheint $form = new Form($db); $formfile = new FormFile($db); -$formcontract = new FormContract($db); +if ($conf->contrat->enabled) + $formcontract = new FormContract($db); llxHeader('',$langs->trans("Fichinter")); @@ -982,7 +983,7 @@ if ($action == 'create') $numprojet=$formproject->select_projects($soc->id,GETPOST('projectid','int'),'projectid'); if ($numprojet==0) { - print '   '.$langs->trans("AddProject").''; + print '   '.$langs->trans("AddProject").''; } print ''; }