FIX #14002
This commit is contained in:
parent
537b291fab
commit
e223189507
@ -75,8 +75,6 @@ $pagenext = $page + 1;
|
|||||||
if (!$sortorder) $sortorder = "DESC";
|
if (!$sortorder) $sortorder = "DESC";
|
||||||
if (!$sortfield)
|
if (!$sortfield)
|
||||||
{
|
{
|
||||||
//if (empty($conf->global->FICHINTER_DISABLE_DETAILS)) $sortfield="fd.date";
|
|
||||||
//else
|
|
||||||
$sortfield = "f.ref";
|
$sortfield = "f.ref";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -245,7 +243,7 @@ if ($search_contrat_ref) {
|
|||||||
$sql .= natural_search('c.ref', $search_contrat_ref);
|
$sql .= natural_search('c.ref', $search_contrat_ref);
|
||||||
}
|
}
|
||||||
if ($search_desc) {
|
if ($search_desc) {
|
||||||
if (empty($conf->global->FICHINTER_DISABLE_DETAILS)) $sql .= natural_search(array('f.description', 'fd.description'), $search_desc);
|
if (empty($conf->global->FICHINTER_DISABLE_DETAILS) && $atleastonefieldinlines) $sql .= natural_search(array('f.description', 'fd.description'), $search_desc);
|
||||||
else $sql .= natural_search(array('f.description'), $search_desc);
|
else $sql .= natural_search(array('f.description'), $search_desc);
|
||||||
}
|
}
|
||||||
if ($search_status != '' && $search_status >= 0) {
|
if ($search_status != '' && $search_status >= 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user