Fix: Submit form of graph box was reseting params of others.
This commit is contained in:
parent
d9dc8de4e6
commit
df829177bc
@ -86,7 +86,7 @@ class box_graph_invoices_permonth extends ModeleBoxes
|
|||||||
$socid=0;
|
$socid=0;
|
||||||
if ($user->societe_id) $socid=$user->societe_id;
|
if ($user->societe_id) $socid=$user->societe_id;
|
||||||
if (! $user->rights->societe->client->voir || $socid) $prefix.='private-'.$user->id.'-'; // If user has no permission to see all, output dir is specific to user
|
if (! $user->rights->societe->client->voir || $socid) $prefix.='private-'.$user->id.'-'; // If user has no permission to see all, output dir is specific to user
|
||||||
|
|
||||||
if ($user->rights->facture->lire)
|
if ($user->rights->facture->lire)
|
||||||
{
|
{
|
||||||
$param_year='DOLUSERCOOKIE_box_'.$this->boxcode.'_year';
|
$param_year='DOLUSERCOOKIE_box_'.$this->boxcode.'_year';
|
||||||
@ -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');
|
||||||
|
|||||||
@ -85,7 +85,7 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
|
|||||||
$socid=0;
|
$socid=0;
|
||||||
if ($user->societe_id) $socid=$user->societe_id;
|
if ($user->societe_id) $socid=$user->societe_id;
|
||||||
if (! $user->rights->societe->client->voir || $socid) $prefix.='private-'.$user->id.'-'; // If user has no permission to see all, output dir is specific to user
|
if (! $user->rights->societe->client->voir || $socid) $prefix.='private-'.$user->id.'-'; // If user has no permission to see all, output dir is specific to user
|
||||||
|
|
||||||
if ($user->rights->fournisseur->facture->lire)
|
if ($user->rights->fournisseur->facture->lire)
|
||||||
{
|
{
|
||||||
$param_year='DOLUSERCOOKIE_box_'.$this->boxcode.'_year';
|
$param_year='DOLUSERCOOKIE_box_'.$this->boxcode.'_year';
|
||||||
@ -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');
|
||||||
|
|||||||
@ -86,7 +86,7 @@ class box_graph_orders_permonth extends ModeleBoxes
|
|||||||
$socid=0;
|
$socid=0;
|
||||||
if ($user->societe_id) $socid=$user->societe_id;
|
if ($user->societe_id) $socid=$user->societe_id;
|
||||||
if (! $user->rights->societe->client->voir || $socid) $prefix.='private-'.$user->id.'-'; // If user has no permission to see all, output dir is specific to user
|
if (! $user->rights->societe->client->voir || $socid) $prefix.='private-'.$user->id.'-'; // If user has no permission to see all, output dir is specific to user
|
||||||
|
|
||||||
if ($user->rights->commande->lire)
|
if ($user->rights->commande->lire)
|
||||||
{
|
{
|
||||||
$param_year='DOLUSERCOOKIE_box_'.$this->boxcode.'_year';
|
$param_year='DOLUSERCOOKIE_box_'.$this->boxcode.'_year';
|
||||||
@ -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');
|
||||||
|
|||||||
@ -85,7 +85,7 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
|
|||||||
$socid=0;
|
$socid=0;
|
||||||
if ($user->societe_id) $socid=$user->societe_id;
|
if ($user->societe_id) $socid=$user->societe_id;
|
||||||
if (! $user->rights->societe->client->voir || $socid) $prefix.='private-'.$user->id.'-'; // If user has no permission to see all, output dir is specific to user
|
if (! $user->rights->societe->client->voir || $socid) $prefix.='private-'.$user->id.'-'; // If user has no permission to see all, output dir is specific to user
|
||||||
|
|
||||||
if ($user->rights->fournisseur->commande->lire)
|
if ($user->rights->fournisseur->commande->lire)
|
||||||
{
|
{
|
||||||
$param_year='DOLUSERCOOKIE_box_'.$this->boxcode.'_year';
|
$param_year='DOLUSERCOOKIE_box_'.$this->boxcode.'_year';
|
||||||
@ -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');
|
||||||
|
|||||||
@ -86,7 +86,7 @@ class box_graph_propales_permonth extends ModeleBoxes
|
|||||||
$socid=0;
|
$socid=0;
|
||||||
if ($user->societe_id) $socid=$user->societe_id;
|
if ($user->societe_id) $socid=$user->societe_id;
|
||||||
if (! $user->rights->societe->client->voir || $socid) $prefix.='private-'.$user->id.'-'; // If user has no permission to see all, output dir is specific to user
|
if (! $user->rights->societe->client->voir || $socid) $prefix.='private-'.$user->id.'-'; // If user has no permission to see all, output dir is specific to user
|
||||||
|
|
||||||
if ($user->rights->propal->lire)
|
if ($user->rights->propal->lire)
|
||||||
{
|
{
|
||||||
$param_year='DOLUSERCOOKIE_box_'.$this->boxcode.'_year';
|
$param_year='DOLUSERCOOKIE_box_'.$this->boxcode.'_year';
|
||||||
@ -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