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:
parent
eaafca64de
commit
c0f7ff272c
@ -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()) {
|
||||
|
@ -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');
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user