FIX select of category

FIX pb with extrafield list and key '0'

Conflicts:
	htdocs/core/class/extrafields.class.php
This commit is contained in:
Laurent Destailleur
2017-08-24 13:23:15 +02:00
parent ab37794f61
commit 326d3df63f
8 changed files with 50 additions and 30 deletions

View File

@@ -6264,7 +6264,7 @@ function natural_search($fields, $value, $mode=0, $nofirstand=0)
$newres .= $db->escape($tmpcrit2);
$newres .= $tmpafter;
$newres .= "'";
if (empty($tmpcrit2))
if ($tmpcrit2 == '')
{
$newres .= ' OR ' . $field . " IS NULL";
}