Skip to content

Commit

Permalink
Merge pull request #14 from zimmen/master
Browse files Browse the repository at this point in the history
Filter fix for 2.3.x
  • Loading branch information
kanduvisla committed Feb 28, 2013
2 parents b7600a1 + 126a341 commit 3768c54
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions content/content.index.php
Expand Up @@ -374,7 +374,7 @@ private function __exportPage()

// Show the headers:
echo implode(';', $headers) . "\n";

/*
* Enable filtering!
* Use the same filtering as with publish indexes (ie: ?filter=[field]:value)
Expand All @@ -395,7 +395,8 @@ private function __exportPage()
WHERE `s`.`id` = `f`.`parent_section`
AND f.`element_name` = '$field_name'
AND `s`.`handle` = '" . $section->get('handle') . "' LIMIT 1");
$field =& $em->fieldManager->fetch($filter);

$field = FieldManager::fetch($filter);

if ($field instanceof Field) {
// For deprecated reasons, call the old, typo'd function name until the switch to the
Expand All @@ -415,7 +416,7 @@ private function __exportPage()
/*
* End
*/

// Show the content:
$total = $em->fetchCount($sectionID,$where,$joins);
for($offset = 0; $offset < $total; $offset += 100)
Expand Down

0 comments on commit 3768c54

Please sign in to comment.