Skip to content

Commit

Permalink
conflicting orders fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrodevog committed Sep 27, 2023
1 parent 823553f commit bd57053
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions module/LogisticsBundle/Controller/Admin/RequestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ public function viewAction()

public function conflictingAction()
{
$requests = $this->getEntityManager()
->getRepository('LogisticsBundle\Entity\Request')
->findNewRequests();
$requests = $this->getUnhandledRequests();

// Gets last order for every request
$lastOrders = array();
foreach ($requests as $request) {
$lastOrders[] = $this->getLastOrderByRequest($request);
if ($this->getLastOrderByRequest($request)) {
$lastOrders[] = $this->getLastOrderByRequest($request);
}
}

$mappings = array();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% import 'site/partials/form.twig' as forms %}

{% block content %}
{% include 'logistics/admin/order/partials/navigation.twig' %}
{% include 'logistics/admin/request/partials/navigation.twig' %}

{% include 'admin/partials/flashMessenger.twig' %}

Expand Down

0 comments on commit bd57053

Please sign in to comment.