From f43dd6c8343aae07adc97fcd07cee1d22439e566 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 6 Jul 2014 21:12:16 +0200 Subject: [PATCH] Fix: form is not allowed inside a table --- htdocs/fichinter/fiche.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index 6ed1bbb2f59..1ef819ae349 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -50,6 +50,7 @@ if (! empty($conf->global->FICHEINTER_ADDON) && is_readable(DOL_DOCUMENT_ROOT ." require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php'; +$langs->load("bills"); $langs->load("companies"); $langs->load("interventions"); @@ -1143,6 +1144,13 @@ else if ($id > 0 || ! empty($ref)) } + print '
'; + print ''; + if ($action == 'edit_extras') print ''; + if ($action == 'contrat') print ''; + + print ''; + print ''; $linkback = ''.$langs->trans("BackToList").''; @@ -1218,9 +1226,6 @@ else if ($id > 0 || ! empty($ref)) print '
'; if ($action == 'contrat') { - print ''; - print ''; - print ''; print ''; print ''; print ''; - print '
'; $htmlcontract= new Formcontract($db); @@ -1229,7 +1234,7 @@ else if ($id > 0 || ! empty($ref)) print '
'; + print '
'; } else { @@ -1280,16 +1285,11 @@ else if ($id > 0 || ! empty($ref)) } if ($action == 'edit_extras' && $user->rights->ficheinter->creer && GETPOST('attribute') == $key) { - print '
'; - print ''; print ''; - print ''; - print ''; print $extrafields->showInputField($key,$value); print ''; - print '
'; } else { @@ -1302,6 +1302,7 @@ else if ($id > 0 || ! empty($ref)) } print ""; + print ''; if (! empty($conf->global->MAIN_DISABLE_CONTACTS_TAB)) {