Skip to content

Commit

Permalink
Fixed issue 19471: Hidden objects not found in admin interface (manua…
Browse files Browse the repository at this point in the history
…lly merged from 2.6 branch)
  • Loading branch information
paulborgermans committed Aug 10, 2012
1 parent 8e941e7 commit f986c78
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions classes/ezfezpsolrquerybuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@ protected function getContentClassFilterQuery( $contentClassIdent )
* @param boolean $ignoreVisibility Set to true for the visibility to be ignored
* @return string Lucene/Solr query string which can be used as filter query for Solr
*/
protected function policyLimitationFilterQuery( $limitation = null, $ignoreVisibility = false )
protected function policyLimitationFilterQuery( $limitation = null, $ignoreVisibility = null )
{
$filterQuery = false;
$policies = array();
Expand Down Expand Up @@ -1680,8 +1680,8 @@ protected function policyLimitationFilterQuery( $limitation = null, $ignoreVisib
$filterQuery = '(' . eZSolr::getMetaFieldName( 'installation_id' ) . ':' . eZSolr::installationID() . $anonymousPart . ')';
}

// Add visibility condition
if ( !$ignoreVisibility )
// Add ignore visibility condition, either explicitely set to boolean false or not specified
if ( $ignoreVisibility === false || $ignoreVisibility === null )
{
$filterQuery .= ' AND ' . eZSolr::getMetaFieldName( 'is_invisible' ) . ':false';
}
Expand Down
2 changes: 1 addition & 1 deletion classes/ezfmodulefunctioncollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function getFilterParameters()
*/
public function search( $query, $offset = 0, $limit = 10, $facets = null,
$filters = null, $sortBy = null, $classID = null, $sectionID = null,
$subtreeArray = null, $ignoreVisibility = false, $limitation = null, $asObjects = true, $spellCheck = null, $boostFunctions = null, $queryHandler = 'ezpublish',
$subtreeArray = null, $ignoreVisibility = null, $limitation = null, $asObjects = true, $spellCheck = null, $boostFunctions = null, $queryHandler = 'ezpublish',
$enableElevation = true, $forceElevation = false, $publishDate = null, $distributedSearch = null, $fieldsToReturn = null, $searchResultClustering = null )
{
$solrSearch = new eZSolr();
Expand Down
2 changes: 1 addition & 1 deletion modules/ezfind/function_definition.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
array( 'name' => 'ignore_visibility',
'type' => 'bool',
'required' => false,
'default' => false ),
'default' => null ),
array( 'name' => 'limitation',
'type' => 'array',
'required' => false,
Expand Down

0 comments on commit f986c78

Please sign in to comment.