diff --git a/core/dbobjectsearch.class.php b/core/dbobjectsearch.class.php index 62cb6d8d4..abf4ae396 100644 --- a/core/dbobjectsearch.class.php +++ b/core/dbobjectsearch.class.php @@ -921,6 +921,7 @@ class DBObjectSearch { $aParams = array_merge($aContextParams, $this->m_aParams); } + $aParams = MetaModel::PrepareQueryArguments($aParams); } else { @@ -1287,4 +1288,4 @@ class DBObjectSearch } -?> +?> diff --git a/core/metamodel.class.php b/core/metamodel.class.php index 1e5398a05..ef245bf92 100644 --- a/core/metamodel.class.php +++ b/core/metamodel.class.php @@ -1976,7 +1976,7 @@ abstract class MetaModel protected static $m_aQueryStructCache = array(); - protected static function PrepareQueryArguments($aArgs) + public static function PrepareQueryArguments($aArgs) { // Translate any object into scalars // @@ -4994,4 +4994,4 @@ MetaModel::RegisterZList("preview", array("description"=>"All attributes visible MetaModel::RegisterZList("standard_search", array("description"=>"List of criteria for the standard search", "type"=>"filters")); MetaModel::RegisterZList("advanced_search", array("description"=>"List of criteria for the advanced search", "type"=>"filters")); -?> \ No newline at end of file +?>