Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 15.0
This commit is contained in:
commit
9c71ae5f0c
@ -99,7 +99,7 @@ $month = GETPOST("month", "int") ?GETPOST("month", "int") : date("m");
|
||||
$week = GETPOST("week", "int") ?GETPOST("week", "int") : date("W");
|
||||
$day = GETPOST("day", "int") ?GETPOST("day", "int") : date("d");
|
||||
$pid = GETPOST("search_projectid", "int", 3) ?GETPOST("search_projectid", "int", 3) : GETPOST("projectid", "int", 3);
|
||||
$status = GETPOST("search_status", 'alpha') ?GETPOST("search_status", 'alpha') : GETPOST("status", 'alpha');
|
||||
$status = GETPOSTISSET("search_status") ? GETPOST("search_status", 'aZ09') : GETPOST("status", 'aZ09'); // status may be 0, 50, 100, 'todo'
|
||||
$type = GETPOST("search_type", 'alpha') ?GETPOST("search_type", 'alpha') : GETPOST("type", 'alpha');
|
||||
$maxprint = ((GETPOST("maxprint", 'int') != '') ?GETPOST("maxprint", 'int') : $conf->global->AGENDA_MAX_EVENTS_DAY_VIEW);
|
||||
$optioncss = GETPOST('optioncss', 'aZ'); // Option for the css output (always '' except when 'print')
|
||||
@ -153,9 +153,10 @@ if ($end_d < $begin_d) {
|
||||
$end_d = $begin_d + 1;
|
||||
}
|
||||
|
||||
if ($status == '' && !GETPOSTISSET('status')) {
|
||||
if ($status == '' && !GETPOSTISSET('search_status')) {
|
||||
$status = (empty($conf->global->AGENDA_DEFAULT_FILTER_STATUS) ? '' : $conf->global->AGENDA_DEFAULT_FILTER_STATUS);
|
||||
}
|
||||
|
||||
if (empty($mode) && !GETPOSTISSET('mode')) {
|
||||
$mode = (empty($conf->global->AGENDA_DEFAULT_VIEW) ? 'show_month' : $conf->global->AGENDA_DEFAULT_VIEW);
|
||||
}
|
||||
@ -512,7 +513,7 @@ print '<div class="liste_titre liste_titre_bydiv centpercent">';
|
||||
if (empty($search_status)) {
|
||||
$search_status = '';
|
||||
}
|
||||
print_actions_filter($form, $canedit, $search_status, $year, $month, $day, $showbirthday, 0, $filtert, 0, $pid, $socid, $action, -1, $actioncode, $usergroup, '', $resourceid);
|
||||
print_actions_filter($form, $canedit, $status, $year, $month, $day, $showbirthday, 0, $filtert, 0, $pid, $socid, $action, -1, $actioncode, $usergroup, '', $resourceid);
|
||||
print '</div>';
|
||||
|
||||
|
||||
|
||||
@ -135,7 +135,7 @@ class Productcustomerprice extends CommonObject
|
||||
$this->price_base_type = trim($this->price_base_type);
|
||||
}
|
||||
if (isset($this->tva_tx)) {
|
||||
$this->tva_tx = trim($this->tva_tx);
|
||||
$this->tva_tx = (float) $this->tva_tx;
|
||||
}
|
||||
if (isset($this->recuperableonly)) {
|
||||
$this->recuperableonly = trim($this->recuperableonly);
|
||||
@ -621,7 +621,7 @@ class Productcustomerprice extends CommonObject
|
||||
$this->price_base_type = trim($this->price_base_type);
|
||||
}
|
||||
if (isset($this->tva_tx)) {
|
||||
$this->tva_tx = trim($this->tva_tx);
|
||||
$this->tva_tx = (float) $this->tva_tx;
|
||||
}
|
||||
if (isset($this->recuperableonly)) {
|
||||
$this->recuperableonly = trim($this->recuperableonly);
|
||||
|
||||
@ -1078,7 +1078,7 @@ class Societe extends CommonObject
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($error)) {
|
||||
if (empty($error)) {
|
||||
dol_syslog(get_class($this)."::create_individual success");
|
||||
$this->db->commit();
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user