Skip to content

Commit

Permalink
Merge pull request #946 from inbaz/develop
Browse files Browse the repository at this point in the history
remove inactive orders from search results in admin panel
  • Loading branch information
BigAndini authored May 3, 2017
2 parents 608ac95 + db60b4c commit 3f0e524
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module/Admin/src/Admin/Controller/OrderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public function searchAction() {
$qb->join('o.code', 'oc');
$qb->join('o.packages', 'p');
$qb->join('p.code', 'pc');
$qb->join('o.status', 's WITH s.active = 1');
$i = 0;
foreach($searchElements as $element) {
if($i == 0) {
Expand Down Expand Up @@ -129,6 +130,7 @@ public function searchAction() {
$qb = $em->getRepository('ErsBase\Entity\Order')->createQueryBuilder('o');
$qb->join('o.user', 'b'); # get buyer
$qb->join('o.packages', 'p');
$qb->join('o.status', 's WITH s.active = 1');
$qb->join('p.user', 'u'); # get participant
$i = 0;
foreach($searchElements as $element) {
Expand Down

0 comments on commit 3f0e524

Please sign in to comment.