Skip to content

Commit

Permalink
Fix: Restore ability to filter on '0'
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 15, 2013
1 parent d6c18c1 commit 95c9d19
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions htdocs/exports/class/export.class.php
Expand Up @@ -233,8 +233,7 @@ function build_sql($indice, $array_selected, $array_filterValue)
// pour ne pas a gerer le nombre de condition
foreach ($array_filterValue as $key => $value)
{
if (!empty($value))
$sqlWhere.=" and ".$this->build_filterQuery($this->array_export_TypeFields[0][$key], $key, $array_filterValue[$key]);
if ($value != '') $sqlWhere.=" and ".$this->build_filterQuery($this->array_export_TypeFields[0][$key], $key, $array_filterValue[$key]);
}
$sql.=$sqlWhere;
}
Expand All @@ -248,7 +247,7 @@ function build_sql($indice, $array_selected, $array_filterValue)
*
* @param string $TypeField Type of Field to filter
* @param string $NameField Name of the field to filter
* @param string $ValueField Initial value of the field to filter
* @param string $ValueField Value of the field for filter. Must not be ''
* @return string sql string of then field ex : "field='xxx'>"
*/
function build_filterQuery($TypeField, $NameField, $ValueField)
Expand Down

0 comments on commit 95c9d19

Please sign in to comment.