From a9779ca1ffc7243e330d5872d925cb1ad493e6ed Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 20 Jul 2014 02:18:21 +0200 Subject: [PATCH] Fix: bad colspan for line with date selector --- htdocs/core/tpl/objectline_create.tpl.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/core/tpl/objectline_create.tpl.php b/htdocs/core/tpl/objectline_create.tpl.php index 170cc1e0fc7..68613492df8 100644 --- a/htdocs/core/tpl/objectline_create.tpl.php +++ b/htdocs/core/tpl/objectline_create.tpl.php @@ -244,7 +244,7 @@ else { table_element_line=='commandedet') { $newline = new OrderLine($this->db); @@ -259,7 +259,7 @@ else { print $newline->showOptionals($extrafieldsline, 'edit', array('style'=>$bcnd[$var], 'colspan'=>$coldisplay+8)); } } - ?> + ?> service->enabled) && $dateSelector) { if(! empty($conf->global->MAIN_VIEW_LINE_NUMBER)) $colspan = 10; else $colspan = 9; + if (! empty($inputalsopricewithtax)) $colspan++; // We add 1 if col total ttc + if (in_array($object->element,array('propal','facture','invoice','commande','order'))) $colspan++; // With this, there is a column move button if (! empty($usemargins)) {