Skip to content

Commit

Permalink
Merge pull request #2582 from gillesbourgeat/prepare-version-2-4-0-al…
Browse files Browse the repository at this point in the history
…pha2

Fix loop feature, filter template
  • Loading branch information
gillesbourgeat committed Nov 20, 2018
2 parents 06c30aa + 036ed5f commit 3a8fafb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/Thelia/Core/Template/Loop/Feature.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function buildModelCriteria()

if (! empty($template)) {
// Join with feature_template table to get position, if a manual order position is required
if (in_array(['manual_reverse', 'manual'], $this->getOrder())) {
if (count(array_diff(['manual_reverse', 'manual'], $this->getOrder())) < 2) {
$search
->filterByTemplate(
TemplateQuery::create()->filterById($template, Criteria::IN)->find(),
Expand Down

0 comments on commit 3a8fafb

Please sign in to comment.