1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Working on kanban

This commit is contained in:
Hillel Coren 2017-12-20 11:16:40 +02:00
parent eaafca64de
commit c0f7ff272c
2 changed files with 2 additions and 2 deletions

View File

@ -243,7 +243,7 @@ class Task extends EntityModel
$taskStatues = TaskStatus::scope()->orderBy('sort_order')->get();
foreach ($taskStatues as $status) {
$statuses[$status->id] = $status->name;
$statuses[$status->public_id] = $status->name;
}
if (! $taskStatues->count()) {

View File

@ -89,7 +89,7 @@ class TaskRepository extends BaseRepository
$query->orWhere('invoices.balance', '=', 0);
}
$query->orWhere(function ($query) use ($statuses) {
$query->whereIn('tasks.task_status_id', $statuses)
$query->whereIn('task_statuses.public_id', $statuses)
->whereNull('tasks.invoice_id');
});