mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
Merge pull request #9910 from atm-ph/fix_8.0_pgsql
Fix pgsql : operator does not exist: timestamp without time zone ~~ u…
This commit is contained in:
@@ -40,7 +40,7 @@ $search_account=GETPOST('search_account','int');
|
|||||||
$search_amount=GETPOST('search_amount','alpha');
|
$search_amount=GETPOST('search_amount','alpha');
|
||||||
$optioncss = GETPOST('optioncss','alpha');
|
$optioncss = GETPOST('optioncss','alpha');
|
||||||
|
|
||||||
$date_select=isset($_GET["date_select"])?$_GET["date_select"]:$_POST["date_select"];
|
$date_select=GETPOST("date_select",'alpha');
|
||||||
|
|
||||||
$limit = GETPOST('limit','int')?GETPOST('limit','int'):$conf->liste_limit;
|
$limit = GETPOST('limit','int')?GETPOST('limit','int'):$conf->liste_limit;
|
||||||
$sortfield = GETPOST("sortfield",'alpha');
|
$sortfield = GETPOST("sortfield",'alpha');
|
||||||
@@ -126,7 +126,8 @@ $sql.= " WHERE d.rowid = c.fk_adherent";
|
|||||||
$sql.= " AND d.entity IN (".getEntity('adherent').")";
|
$sql.= " AND d.entity IN (".getEntity('adherent').")";
|
||||||
if (isset($date_select) && $date_select != '')
|
if (isset($date_select) && $date_select != '')
|
||||||
{
|
{
|
||||||
$sql.= " AND c.dateadh LIKE '".$date_select."%'";
|
$sql.= " AND c.dateadh >= '".$date_select."-01-01 00:00:00'";
|
||||||
|
$sql.= " AND c.dateadh < '".($date_select+1)."-01-01 00:00:00'";
|
||||||
}
|
}
|
||||||
if ($search_ref)
|
if ($search_ref)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user