Merge branch '7.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
6ccdb52229
@ -41,7 +41,7 @@ $month=GETPOST("month",'int');
|
|||||||
$day=GETPOST("day",'int');
|
$day=GETPOST("day",'int');
|
||||||
$pid=GETPOST("projectid",'int',3);
|
$pid=GETPOST("projectid",'int',3);
|
||||||
$status=GETPOST("status",'alpha');
|
$status=GETPOST("status",'alpha');
|
||||||
$type=GETPOST('type');
|
$type=GETPOST('type','alphanohtml');
|
||||||
$optioncss = GETPOST('optioncss','alpha');
|
$optioncss = GETPOST('optioncss','alpha');
|
||||||
// Set actioncode (this code must be same for setting actioncode into peruser, listacton and index)
|
// Set actioncode (this code must be same for setting actioncode into peruser, listacton and index)
|
||||||
if (GETPOST('actioncode','array'))
|
if (GETPOST('actioncode','array'))
|
||||||
@ -355,7 +355,7 @@ if ($resql)
|
|||||||
//if ($actioncode) $nav.='<input type="hidden" name="actioncode" value="'.$actioncode.'">';
|
//if ($actioncode) $nav.='<input type="hidden" name="actioncode" value="'.$actioncode.'">';
|
||||||
//if ($resourceid) $nav.='<input type="hidden" name="resourceid" value="'.$resourceid.'">';
|
//if ($resourceid) $nav.='<input type="hidden" name="resourceid" value="'.$resourceid.'">';
|
||||||
if ($filter) $nav.='<input type="hidden" name="filter" value="'.$filter.'">';
|
if ($filter) $nav.='<input type="hidden" name="filter" value="'.$filter.'">';
|
||||||
if ($filtert) $nav.='<input type="hidden" name="filtert" value="'.$filtert.'">';
|
//if ($filtert) $nav.='<input type="hidden" name="filtert" value="'.$filtert.'">';
|
||||||
//if ($socid) $nav.='<input type="hidden" name="socid" value="'.$socid.'">';
|
//if ($socid) $nav.='<input type="hidden" name="socid" value="'.$socid.'">';
|
||||||
if ($showbirthday) $nav.='<input type="hidden" name="showbirthday" value="1">';
|
if ($showbirthday) $nav.='<input type="hidden" name="showbirthday" value="1">';
|
||||||
//if ($pid) $nav.='<input type="hidden" name="projectid" value="'.$pid.'">';
|
//if ($pid) $nav.='<input type="hidden" name="projectid" value="'.$pid.'">';
|
||||||
|
|||||||
@ -616,7 +616,7 @@ if (empty($reshook))
|
|||||||
// Close proposal
|
// Close proposal
|
||||||
else if ($action == 'setstatut' && $user->rights->propal->cloturer && ! GETPOST('cancel','alpha'))
|
else if ($action == 'setstatut' && $user->rights->propal->cloturer && ! GETPOST('cancel','alpha'))
|
||||||
{
|
{
|
||||||
if (! GETPOST('statut','int')) {
|
if (! (GETPOST('statut','int') > 0)) {
|
||||||
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("CloseAs")), null, 'errors');
|
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("CloseAs")), null, 'errors');
|
||||||
$action = 'statut';
|
$action = 'statut';
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -348,6 +348,8 @@ update llx_facturedet set product_type = 1 where product_type = 2;
|
|||||||
--update llx_commandedet as d set d.product_type = 1 where d.fk_product = 22 and d.product_type = 0;
|
--update llx_commandedet as d set d.product_type = 1 where d.fk_product = 22 and d.product_type = 0;
|
||||||
--update llx_facturedet as d set d.product_type = 1 where d.fk_product = 22 and d.product_type = 0;
|
--update llx_facturedet as d set d.product_type = 1 where d.fk_product = 22 and d.product_type = 0;
|
||||||
|
|
||||||
|
update llx_propal set fk_statut = 1 where fk_statut = -1;
|
||||||
|
|
||||||
delete from llx_commande_fournisseur_dispatch where fk_commandefourndet = 0 or fk_commandefourndet IS NULL;
|
delete from llx_commande_fournisseur_dispatch where fk_commandefourndet = 0 or fk_commandefourndet IS NULL;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user