diff --git a/ChangeLog b/ChangeLog
index ac01ad98197..ac96682f558 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -61,17 +61,20 @@ For developers:
- New: Make some changes to allow usage of several alternative $dolibarr_main_url_root variables.
Fix also several bugs with old code.
- Qual: All nowrap properties are now using CSS class nowrap.
+- New: Into POST forms, if you can add a parameter DOL_AUTOSET_COOKIE with a vlue that is list name,
+ separated by a coma, of other POST parameters, Dolibarr will automatically save this parameters
+ into user cookies.
-WARNING: This may create regression for some external modules, but was necessary to make
+
+WARNING: Following change may create regression for some external modules, but was necessary to make
Dolibarr better:
1) We started to clean hooks code.
-If your hook want to modify value of $actions, it's role
-of your hook to modify it. Dolibarr hook code will not decide this for your module anymore.
-If your action class for hook was returning a string or an array, instead your module must
-set $actionclassinstance->results (to return array)
-or $actionclassinstance->resprints (to return string)
-to return same thing. The return value must be replaced by a "return 0";
+If your hook want to modify value of $actions, it's role of your hook to modify it. Dolibarr
+hook code will no more decide this for your module. If your action class for hook was returning
+a string or an array, instead your module must set $actionclassinstance->results (to return array)
+or $actionclassinstance->resprints (to return string) to return same thing. The return value must
+be replaced by a "return 0";
Goal is to fix old compatibility code that does not match hook specifications:
http://wiki.dolibarr.org/index.php/Hooks_system
@@ -80,7 +83,7 @@ All content added must be tagged by a '
' with css class="login_block_elem"
3) Some methods object->addline used a first parameter that was object->id, some not. Of course
this was not a good pratice, since object->id is already known so no need to provide it as
-parameter. All methods addline in this case were modified to remove this information.
+parameter. All methods addline in this case were modified to remove this parameter.
***** ChangeLog for 3.4 compared to 3.3.* *****
diff --git a/htdocs/core/boxes/box_graph_invoices_permonth.php b/htdocs/core/boxes/box_graph_invoices_permonth.php
index 026a0b9da80..38ec8204984 100644
--- a/htdocs/core/boxes/box_graph_invoices_permonth.php
+++ b/htdocs/core/boxes/box_graph_invoices_permonth.php
@@ -77,18 +77,23 @@ class box_graph_invoices_permonth extends ModeleBoxes
'sublink'=>'',
'subtext'=>$langs->trans("Filter"),
'subpicto'=>'filter.png',
+ 'subclass'=>'linkobject',
'target'=>'none' // Set '' to get target="_blank"
);
if ($user->rights->facture->lire)
{
+ $param_year='DOLUSERCOOKIE_param'.$this->boxcode.'year';
+ $param_shownb='DOLUSERCOOKIE_param'.$this->boxcode.'shownb';
+ $param_showtot='DOLUSERCOOKIE_param'.$this->boxcode.'showtot';
+
include_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php';
include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facturestats.class.php';
-
- $shownb=(! empty($conf->global->FACTURE_BOX_GRAPH_SHOW_NB));
- $showtot=(! isset($conf->global->FACTURE_BOX_GRAPH_SHOW_TOT) || ! empty($conf->global->FACTURE_BOX_GRAPH_SHOW_TOT));
+ $shownb=GETPOST($param_shownb,'alpha',4);
+ $showtot=GETPOST($param_showtot,'alpha',4);
+ if (empty($shownb) && empty($showtot)) $showtot=1;
$nowarray=dol_getdate(dol_now(),true);
- $endyear=(GETPOST('param'.$this->boxcode.'year')?GETPOST('param'.$this->boxcode.'year','int'):$nowarray['year']);
+ $endyear=(GETPOST($param_year,'',4)?GETPOST($param_year,'int',4):$nowarray['year']);
$startyear=$endyear-1;
$mode='customer';
$userid=0;
@@ -183,11 +188,17 @@ class box_graph_invoices_permonth extends ModeleBoxes
});
});
';
- $stringtoshow.='