Skip to content

Commit 550aae2

Browse files
authored
Release v0.4.1
Bugfix/Make sure that criteria builder builds criteria with order = none by default (#29)
2 parents 81e8d1b + 38e505b commit 550aae2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Application/CriteriaBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ public function build(): Criteria
216216
{
217217
return new Criteria(
218218
FilterGroup::create($this->filters),
219-
Order::create($this->orderBy, $this->orderType),
219+
empty($this->orderBy) ? Order::none() : Order::create($this->orderBy, $this->orderType),
220220
Page::create($this->pageLimit, $this->pageOffset)
221221
);
222222
}
223-
}
223+
}

0 commit comments

Comments
 (0)