1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-15 07:33:04 +01:00
invoiceninja/app/Ninja/Intents/WebApp/CreateTaskIntent.php

22 lines
492 B
PHP
Raw Normal View History

2017-04-04 16:51:01 +02:00
<?php
namespace App\Ninja\Intents\WebApp;
use App\Ninja\Intents\BaseIntent;
class CreateTaskIntent extends BaseIntent
{
public function process()
{
$client = $this->requestClient();
$clientPublicId = $client ? $client->public_id : null;
//$invoiceItems = $this->requestInvoiceItems();
$url = '/tasks/create/' . $clientPublicId . '?';
//$url .= $this->requestFieldsAsString(Invoice::$requestFields);
return redirect($url);
}
}