1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 14:12:44 +01:00
invoiceninja/app/Ninja/Intents/WebApp/ListTaskIntent.php
2019-01-30 22:25:37 +11:00

22 lines
397 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 ($client = $this->requestClient()) {
$url = $client->present()->url . '#tasks';
} else {
$url = '/tasks';
}
return redirect($url);
}
}