Fix: Submit form of graph box was reseting params of others.
This commit is contained in:
parent
d9dc8de4e6
commit
df829177bc
@ -95,7 +95,8 @@ class box_graph_invoices_permonth extends ModeleBoxes
|
|||||||
|
|
||||||
include_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facturestats.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facturestats.class.php';
|
||||||
if (GETPOST('DOL_AUTOSET_COOKIE'))
|
$autosetarray=preg_split("/[,;:]+/",GETPOST('DOL_AUTOSET_COOKIE'));
|
||||||
|
if (in_array('DOLUSERCOOKIE_box_'.$this->boxcode,$autosetarray))
|
||||||
{
|
{
|
||||||
$endyear=GETPOST($param_year,'int');
|
$endyear=GETPOST($param_year,'int');
|
||||||
$shownb=GETPOST($param_shownb,'alpha');
|
$shownb=GETPOST($param_shownb,'alpha');
|
||||||
|
|||||||
@ -94,7 +94,8 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
|
|||||||
|
|
||||||
include_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facturestats.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facturestats.class.php';
|
||||||
if (GETPOST('DOL_AUTOSET_COOKIE'))
|
$autosetarray=preg_split("/[,;:]+/",GETPOST('DOL_AUTOSET_COOKIE'));
|
||||||
|
if (in_array('DOLUSERCOOKIE_box_'.$this->boxcode,$autosetarray))
|
||||||
{
|
{
|
||||||
$endyear=GETPOST($param_year,'int');
|
$endyear=GETPOST($param_year,'int');
|
||||||
$shownb=GETPOST($param_shownb,'alpha');
|
$shownb=GETPOST($param_shownb,'alpha');
|
||||||
|
|||||||
@ -95,7 +95,8 @@ class box_graph_orders_permonth extends ModeleBoxes
|
|||||||
|
|
||||||
include_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/commande/class/commandestats.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/commande/class/commandestats.class.php';
|
||||||
if (GETPOST('DOL_AUTOSET_COOKIE'))
|
$autosetarray=preg_split("/[,;:]+/",GETPOST('DOL_AUTOSET_COOKIE'));
|
||||||
|
if (in_array('DOLUSERCOOKIE_box_'.$this->boxcode,$autosetarray))
|
||||||
{
|
{
|
||||||
$endyear=GETPOST($param_year,'int');
|
$endyear=GETPOST($param_year,'int');
|
||||||
$shownb=GETPOST($param_shownb,'alpha');
|
$shownb=GETPOST($param_shownb,'alpha');
|
||||||
|
|||||||
@ -94,7 +94,8 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
|
|||||||
|
|
||||||
include_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/commande/class/commandestats.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/commande/class/commandestats.class.php';
|
||||||
if (GETPOST('DOL_AUTOSET_COOKIE'))
|
$autosetarray=preg_split("/[,;:]+/",GETPOST('DOL_AUTOSET_COOKIE'));
|
||||||
|
if (in_array('DOLUSERCOOKIE_box_'.$this->boxcode,$autosetarray))
|
||||||
{
|
{
|
||||||
$endyear=GETPOST($param_year,'int');
|
$endyear=GETPOST($param_year,'int');
|
||||||
$shownb=GETPOST($param_shownb,'alpha');
|
$shownb=GETPOST($param_shownb,'alpha');
|
||||||
|
|||||||
@ -86,7 +86,8 @@ class box_graph_product_distribution extends ModeleBoxes
|
|||||||
$param_showinvoicenb='DOLUSERCOOKIE_box_'.$this->boxcode.'_showinvoicenb';
|
$param_showinvoicenb='DOLUSERCOOKIE_box_'.$this->boxcode.'_showinvoicenb';
|
||||||
$param_showpropalnb='DOLUSERCOOKIE_box_'.$this->boxcode.'_showpropalnb';
|
$param_showpropalnb='DOLUSERCOOKIE_box_'.$this->boxcode.'_showpropalnb';
|
||||||
$param_showordernb='DOLUSERCOOKIE_box_'.$this->boxcode.'_showordernb';
|
$param_showordernb='DOLUSERCOOKIE_box_'.$this->boxcode.'_showordernb';
|
||||||
if (GETPOST('DOL_AUTOSET_COOKIE'))
|
$autosetarray=preg_split("/[,;:]+/",GETPOST('DOL_AUTOSET_COOKIE'));
|
||||||
|
if (in_array('DOLUSERCOOKIE_box_'.$this->boxcode,$autosetarray))
|
||||||
{
|
{
|
||||||
$year=GETPOST($param_year,'int');
|
$year=GETPOST($param_year,'int');
|
||||||
$showinvoicenb=GETPOST($param_showinvoicenb,'alpha');
|
$showinvoicenb=GETPOST($param_showinvoicenb,'alpha');
|
||||||
|
|||||||
@ -95,7 +95,8 @@ class box_graph_propales_permonth extends ModeleBoxes
|
|||||||
|
|
||||||
include_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propalestats.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propalestats.class.php';
|
||||||
if (GETPOST('DOL_AUTOSET_COOKIE'))
|
$autosetarray=preg_split("/[,;:]+/",GETPOST('DOL_AUTOSET_COOKIE'));
|
||||||
|
if (in_array('DOLUSERCOOKIE_box_'.$this->boxcode,$autosetarray))
|
||||||
{
|
{
|
||||||
$endyear=GETPOST($param_year,'int');
|
$endyear=GETPOST($param_year,'int');
|
||||||
$shownb=GETPOST($param_shownb,'alpha');
|
$shownb=GETPOST($param_shownb,'alpha');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user