Fix availability if active jo is closed #424
This commit is contained in:
parent
4b22344e72
commit
655b632849
1 changed files with 1 additions and 1 deletions
|
|
@ -603,7 +603,7 @@ class RiderController extends Controller
|
|||
public function ajaxAvailable(EntityManagerInterface $em, Rider $rider)
|
||||
{
|
||||
$jo = $rider->getRiderActiveJobOrder();
|
||||
if ($jo == null)
|
||||
if ($jo == null || $jo->isClosed())
|
||||
$avail = 'available';
|
||||
else
|
||||
$avail = 'unavailable';
|
||||
|
|
|
|||
Loading…
Reference in a new issue