From 0918fd21b0a8ae1231628a514788cbf58f2edaab Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 26 Feb 2014 14:48:53 +0100 Subject: [PATCH 1/7] Fix: Css errors --- htdocs/theme/cameleo/style.css.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/theme/cameleo/style.css.php b/htdocs/theme/cameleo/style.css.php index 2d5c1bc337d..7a8277a4cdc 100644 --- a/htdocs/theme/cameleo/style.css.php +++ b/htdocs/theme/cameleo/style.css.php @@ -1345,7 +1345,7 @@ div.divButAction { margin-bottom: 1.4em; } .butActionRefused { background: #FFe7ec; - color: #666; + color: #aaa !important; } global->MAIN_BUTTON_HIDE_UNAUTHORIZED)) { ?> @@ -1602,6 +1602,7 @@ tr.pair td.nohover { -webkit-box-shadow: 4px 4px 4px #DDD; box-shadow: 4px 4px 4px #DDD; margin-bottom: 8px !important;*/ + background: #FFFFFF; border: 1px solid #AAA; text-align: center; border-radius: 5px; From 855dac45eae6ee34b2604822de19232a2059a213 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 26 Feb 2014 15:29:40 +0100 Subject: [PATCH 2/7] Fix: select_comptes was always making a filter on field clos making other filter field not working in some case. --- htdocs/core/class/html.form.class.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 7aa09f556b9..452d0e7110d 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -2364,7 +2364,7 @@ class Form * * @param string $selected Id account pre-selected * @param string $htmlname Name of select zone - * @param int $statut Status of searched accounts (0=open, 1=closed) + * @param int $statut Status of searched accounts (0=open, 1=closed, 2=both) * @param string $filtre To filter list * @param int $useempty 1=Add an empty value in list, 2=Add an empty value in list only if there is more than 2 entries. * @param string $moreattrib To add more attribute on select @@ -2376,10 +2376,10 @@ class Form $langs->load("admin"); - $sql = "SELECT rowid, label, bank"; + $sql = "SELECT rowid, label, bank, clos as status"; $sql.= " FROM ".MAIN_DB_PREFIX."bank_account"; - $sql.= " WHERE clos = '".$statut."'"; - $sql.= " AND entity IN (".getEntity('bank_account', 1).")"; + $sql.= " WHERE entity IN (".getEntity('bank_account', 1).")"; + if ($statut != 2) $sql.= " AND clos = '".$statut."'"; if ($filtre) $sql.=" AND ".$filtre; $sql.= " ORDER BY label"; @@ -2409,6 +2409,7 @@ class Form print ''; $i++; } From 9505f9e47caf48eba2b03fa6707842ce1a460803 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 25 Feb 2014 19:07:42 +0100 Subject: [PATCH 3/7] Fix: The delivery date was missing. --- .../commande/doc/pdf_einstein.modules.php | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/htdocs/core/modules/commande/doc/pdf_einstein.modules.php b/htdocs/core/modules/commande/doc/pdf_einstein.modules.php index a954c68c906..4aa428f23fa 100644 --- a/htdocs/core/modules/commande/doc/pdf_einstein.modules.php +++ b/htdocs/core/modules/commande/doc/pdf_einstein.modules.php @@ -152,7 +152,8 @@ class pdf_einstein extends ModelePDFCommandes $outputlangs->load("bills"); $outputlangs->load("products"); $outputlangs->load("orders"); - + $outputlangs->load("deliveries"); + if ($conf->commande->dir_output) { $object->fetch_thirdparty(); @@ -582,6 +583,31 @@ class pdf_einstein extends ModelePDFCommandes $posy=$pdf->GetY()+1; } */ + if (! empty($object->date_livraison)) + { + $pdf->SetXY($this->marge_gauche, $posy); + $pdf->SetFont('','B', $default_font_size - 2); + $text=$outputlangs->transnoentities("DeliveryDate").':'; + $pdf->MultiCell(80, 3, $text, 0, 'L', 0); + + $pdf->SetFont('','', $default_font_size - 2); + $pdf->SetXY($posxval, $posy); + $text=dol_print_date($object->date_livraison,'day','',$outputlangs); + $pdf->MultiCell(80, 3, $text, 0, 'L', 0); + + $posy=$pdf->GetY()+1; + } + /* TODO + else if (! empty($object->availability_code)) + { + $pdf->SetXY($this->marge_gauche, $posy); + $pdf->SetTextColor(200,0,0); + $pdf->SetFont('','B', $default_font_size - 2); + $pdf->MultiCell(80, 3, $outputlangs->transnoentities("AvailabilityPeriod").': '.,0,'L',0); + $pdf->SetTextColor(0,0,0); + + $posy=$pdf->GetY()+1; + }*/ // Show payment mode if ($object->mode_reglement_code From df2eb95882009299a0402903204428dfdcbdd662 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 25 Feb 2014 19:14:58 +0100 Subject: [PATCH 4/7] Fix: Right to left support --- htdocs/theme/eldy/style.css.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index c767f5b956e..d41df53975e 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -444,7 +444,7 @@ td.showDragHandle { float: none; vertical-align: top; } -#id- { +#id-right { /* This must stay id-right ant not be replaced with echo $right */ width: 100%; } @@ -477,7 +477,7 @@ div.fichehalfright { dol_optimize_smallscreen)) { print "width: 50%;\n"; } ?> } div.ficheaddleft { - dol_optimize_smallscreen)) { print "padding-left: 16px;\n"; } + dol_optimize_smallscreen)) { print "padding-".$left.": 16px;\n"; } else print "margin-top: 10px;\n"; ?> } .containercenter { @@ -510,7 +510,7 @@ div#tmenu_tooltip { display:none; height: px; - padding-right: 100px; + padding-: 100px; background: ; box-shadow: 0 0 6px rgba(0, 0, 0, .4) !important; From 8ffa11fe16c3dc5179c20e3d1e4b2888bc603761 Mon Sep 17 00:00:00 2001 From: simnandez Date: Wed, 26 Feb 2014 16:50:38 +0100 Subject: [PATCH 5/7] Fix: Loading actions extrafields fails. --- ChangeLog | 1 + htdocs/comm/action/fiche.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0432585483a..9c230457e91 100644 --- a/ChangeLog +++ b/ChangeLog @@ -32,6 +32,7 @@ Fix: Signature was not added for email sent from thirdparty page. Fix: Action event SHIPPING_VALIDATE is not implemented Fix: The customer code was set to uppercase when using numbering module leopard. We must keep data safe of any change. +Fix: Loading actions extrafields fails. ***** ChangeLog for 3.5 compared to 3.4.* ***** For users: diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index ee20189f14f..c47b89ad9ed 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -3,7 +3,7 @@ * Copyright (C) 2004-2013 Laurent Destailleur * Copyright (C) 2005 Simon TOSSER * Copyright (C) 2005-2012 Regis Houssin - * Copyright (C) 2010 Juanjo Menent + * Copyright (C) 2010-2013 Juanjo Menent * Copyright (C) 2013 Florian Henry * * This program is free software; you can redistribute it and/or modify @@ -863,7 +863,7 @@ if ($id > 0) $reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$act,$action); // Note that $action and $object may have been modified by hook if (empty($reshook) && ! empty($extrafields->attribute_label)) { - print $actioncomm->showOptionals($extrafields,'edit'); + print $act->showOptionals($extrafields,'edit'); } From 0c2ca119d77b031fe145983a10ae78ed579ebc23 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 26 Feb 2014 16:51:38 +0100 Subject: [PATCH 6/7] Fix: Add a test to avoid the non stable and experimental fuc... feature "MAIN_MENU_USE_JQUERY_LAYOUT" to make application hang. --- htdocs/core/class/menubase.class.php | 5 +---- htdocs/main.inc.php | 29 +++++++++++++--------------- 2 files changed, 14 insertions(+), 20 deletions(-) diff --git a/htdocs/core/class/menubase.class.php b/htdocs/core/class/menubase.class.php index 6777c37b374..961cfd5733c 100644 --- a/htdocs/core/class/menubase.class.php +++ b/htdocs/core/class/menubase.class.php @@ -547,15 +547,12 @@ class Menubase $tmpcond=$menu['enabled']; if ($leftmenu == 'all') $tmpcond=preg_replace('/\$leftmenu\s*==\s*["\'a-zA-Z_]+/','1==1',$tmpcond); // Force part of condition to true $enabled = verifCond($tmpcond); - if ($conf->use_javascript_ajax && ! empty($conf->global->MAIN_MENU_USE_JQUERY_ACCORDION) && preg_match('/^\$leftmenu/',$menu['enabled'])) $enabled=1; - //print "verifCond rowid=".$menu['rowid']." ".$tmpcond.":".$enabled."
\n"; + //if ($conf->use_javascript_ajax && ! empty($conf->global->MAIN_MENU_USE_JQUERY_ACCORDION) && empty($conf->dol_use_jmobile) && preg_match('/^\$leftmenu/',$menu['enabled'])) $enabled=1; } // Define $title if ($enabled) { -//$tmp3=dol_microtime_float(); -//print '>>> 2 '.($tmp3 - $tmp1).'
'; $title = $langs->trans($menu['titre']); if ($title == $menu['titre']) // Translation not found { diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 877ddc5aa9c..255b4fd4afd 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -261,7 +261,7 @@ if (! empty($conf->file->main_force_https)) } -// Loading of additional presentation includes +// Loading of additional presentation includes if (! defined('NOREQUIREHTML')) require_once DOL_DOCUMENT_ROOT .'/core/class/html.form.class.php'; // Need 660ko memory (800ko in 2.2) if (! defined('NOREQUIREAJAX') && $conf->use_javascript_ajax) require_once DOL_DOCUMENT_ROOT.'/core/lib/ajax.lib.php'; // Need 22ko memory @@ -1084,7 +1084,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs print ''."\n"; print ''."\n"; // jQuery Layout - if (! empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT) || defined('REQUIRE_JQUERY_LAYOUT')) + if (empty($conf->dol_use_jmobile) && ! empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT) || defined('REQUIRE_JQUERY_LAYOUT')) { print ''."\n"; } @@ -1293,7 +1293,7 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a if ($conf->use_javascript_ajax) { - if (! empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) + if (empty($conf->dol_use_jmobile) && ! empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) { print ''; } - if (! empty($conf->global->MAIN_MENU_USE_JQUERY_ACCORDION)) + /* This make menu bugged + if ($conf->use_javascript_ajax && ! empty($conf->global->MAIN_MENU_USE_JQUERY_ACCORDION) && empty($conf->dol_use_jmobile)) { print "\n".''; - } + } */ // Wrapper to show tooltips print "\n".'