From 730f5d1ad423477ca564652cd3357d978892981b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 23 Dec 2018 14:05:37 +0100 Subject: [PATCH 01/12] Prepare 8.0.4 --- ChangeLog | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/ChangeLog b/ChangeLog index c0e3e277009..255810a05ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,72 @@ English Dolibarr ChangeLog -------------------------------------------------------------- +***** ChangeLog for 8.0.4 compared to 8.0.3 ***** +FIX: #10030 better german chart +FIX: #10036 +FIX: #10080 Supplier translations are in english +FIX: #10183 using backport of fix done in 9.0 +FIX: #10218 Bad redirection after deleting a user or group +FIX: #3234 +FIX: #6580 +FIX: #8741 +FIX: #9629 #9625 +FIX: #9971 +FIX: avoid Class 'AdherentType' not found +FIX: Can relaunch install on v8 +FIX: Can't create a thirdparty from member if customer code is mandatory. +FIX: Can't delete a line of minimal stock per warehouse +FIX: check if "entity" is already defined in "$param" +FIX: contact/address tab issue when changing company +FIX: contact/adress tab: when changing company ajax combo, the first contact change is not taken into account +FIX: CVE-2018-19799 +FIX: CVE-2018-19992 +FIX: CVE-2018-19993 +FIX: CVE-2018-19994 +FIX: CVE-2018-19995 and CVE-2018-19998 +FIX: Error reported when creation of thirdparty from member fails +FIX: export only prices of the current entity ! +FIX: Extrafields on shipment module +FIX: filter on product category doesn't work +FIX: form actions: select_type_actions could be too small + bad $db init +FIX: form actions: select_type_actions could be too small + bad init +FIX: fourn payment modes musn't be available on customer docs +FIX: Function updatePrice with wrong parameters +FIX: hidden extrafield +FIX: if qty is 0 +FIX: If we change customer/supplier rule we can't edit old thirdparty. +FIX: lang not loaded +FIX: Lines are not inserted correctly if VAT have code +FIX: marge sign +FIX: Method setValid not found +FIX: Migration do not create not used table +FIX: missing action "edit" for the hook +FIX: missing field "visible" +FIX: Missing last month on vat report per month +FIX: mode is only customer in stats fichinter +FIX: OppStatusShort doesn't exists +FIX: Remote ip detection was wrong with proxy (example: cloudflare) +FIX: Removed not use table +FIX: Replenishment with option STOCK_ALLOW_ADD_LIMIT_STOCK_BY_WAREHOUSE +FIX: responsive +FIX: Same on customer card +FIX: same on lines +FIX: screen size fall +FIX: Select first mail model by default +FIX: slow SQL query on creating a new supplier invoice +FIX: sql query performance on list_qualified_avoir_supplier_invoices. +FIX: supplier order list keep socid +FIX: Same on customer card +FIX: same on lines +FIX: screen size fall +FIX: Select first mail model by default +FIX: slow SQL query on creating a new supplier invoice +FIX: sql query performance on list_qualified_avoir_supplier_invoices. +FIX: supplier order list keep socid +FIX: Vendor translations are in english +FIX: Warning: count() +FIX: We want to be able to send PDF of paid invoices + ***** ChangeLog for 8.0.3 compared to 8.0.2 ***** FIX: #9161 FIX: #9432 From 63beb504656ad9db9d5811adfaa6446f67ab44d4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 26 Dec 2018 21:22:12 +0100 Subject: [PATCH 02/12] Fix missing migration of external site module --- htdocs/install/upgrade2.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/install/upgrade2.php b/htdocs/install/upgrade2.php index 1077e37f78e..9315769d756 100644 --- a/htdocs/install/upgrade2.php +++ b/htdocs/install/upgrade2.php @@ -455,6 +455,7 @@ if (! GETPOST('action','aZ09') || preg_match('/upgrade/i',GETPOST('action','aZ09 'MAIN_MODULE_DEPLACEMENT'=>'newboxdefonly', 'MAIN_MODULE_DON'=>'newboxdefonly', 'MAIN_MODULE_ECM'=>'newboxdefonly', + 'MAIN_MODULE_EXTERNALSITE'=>'newboxdefonly', 'MAIN_MODULE_FACTURE'=>'newboxdefonly', 'MAIN_MODULE_FOURNISSEUR'=>'newboxdefonly', 'MAIN_MODULE_HOLIDAY'=>'newboxdefonly', From 3cd91d7c66584ae3fc8778540a2e8e121de8d3f1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 28 Dec 2018 00:41:05 +0100 Subject: [PATCH 03/12] Fix look and feel v9 (autofocus) --- htdocs/core/search_page.php | 5 ++++- htdocs/main.inc.php | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/htdocs/core/search_page.php b/htdocs/core/search_page.php index acf2f788802..c3ed5a4aacc 100644 --- a/htdocs/core/search_page.php +++ b/htdocs/core/search_page.php @@ -81,6 +81,7 @@ else $showtitlebefore = GETPOST('showtitlebefore','int'); include DOL_DOCUMENT_ROOT.'/core/ajax/selectsearchbox.php'; + $i=0; $accesskeyalreadyassigned=array(); foreach($arrayresult as $key => $val) { @@ -94,7 +95,9 @@ else $accesskey=$val['label'][0]; $accesskeyalreadyassigned[$accesskey]=$accesskey; } - $searchform.=printSearchForm($urlaction, $urlaction, $val['label'], 'minwidth200', $keysearch, $accesskey, $key, img_picto('',$val['img'],'', 0, 1), $showtitlebefore); + $searchform.=printSearchForm($urlaction, $urlaction, $val['label'], 'minwidth200', $keysearch, $accesskey, $key, img_picto('',$val['img'],'', 0, 1), $showtitlebefore, ($i>0?0:1)); + + $i++; } } diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 9afed25286c..27e3b84b1de 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1740,7 +1740,7 @@ function left_menu($menu_array_before, $helppagename='', $notused='', $menu_arra if (! empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER) || empty($conf->use_javascript_ajax)) { $urltosearch=DOL_URL_ROOT.'/core/search_page.php?showtitlebefore=1'; - $searchform=''; + $searchform=''; } elseif ($conf->use_javascript_ajax && ! empty($conf->global->MAIN_USE_OLD_SEARCH_FORM)) { @@ -1935,9 +1935,10 @@ function getHelpParamFor($helppagename,$langs) * @param string $prefhtmlinputname Complement for id to avoid multiple same id in the page * @param string $img Image to use * @param string $showtitlebefore Show title before input text instead of into placeholder. This can be set when output is dedicated for text browsers. + * @param string $autofocus Set autofocus on field * @return string */ -function printSearchForm($urlaction, $urlobject, $title, $htmlmorecss, $htmlinputname, $accesskey='', $prefhtmlinputname='',$img='', $showtitlebefore=0) +function printSearchForm($urlaction, $urlobject, $title, $htmlmorecss, $htmlinputname, $accesskey='', $prefhtmlinputname='',$img='', $showtitlebefore=0, $autofocus=0) { global $conf,$langs,$user; @@ -1951,6 +1952,7 @@ function printSearchForm($urlaction, $urlobject, $title, $htmlmorecss, $htmlinpu $ret.=' style="text-indent: 22px; background-image: url(\''.$img.'\'); background-repeat: no-repeat; background-position: 3px;"'; $ret.=($accesskey?' accesskey="'.$accesskey.'"':''); $ret.=' placeholder="'.strip_tags($title).'"'; + $ret.=($autofocus?' autofocus':''); $ret.=' name="'.$htmlinputname.'" id="'.$prefhtmlinputname.$htmlinputname.'" />'; //$ret.=''; $ret.='