mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-11-18 12:34:05 -05:00
22 lines
435 B
PHP
22 lines
435 B
PHP
<?php
|
|
|
|
namespace App\Ninja\Intents\WebApp;
|
|
|
|
use App\Ninja\Intents\BaseIntent;
|
|
|
|
class ListTaskIntent extends BaseIntent
|
|
{
|
|
public function process()
|
|
{
|
|
$this->loadStates(ENTITY_TASK);
|
|
|
|
if (! $this->hasField('Filter', 'all') && $client = $this->requestClient()) {
|
|
$url = $client->present()->url . '#tasks';
|
|
} else {
|
|
$url = '/tasks';
|
|
}
|
|
|
|
return redirect($url);
|
|
}
|
|
}
|