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

Actions for Tasks/Products (#2045)

* balances dump

* balances dump

* balances dump

*  apply actions to tasks

* cast type boolean
This commit is contained in:
David Bomba 2018-04-21 21:54:05 +10:00 committed by GitHub
parent 804ac66533
commit 60df6b9d8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -149,6 +149,9 @@ class TaskApiController extends BaseAPIController
*/
public function update(UpdateTaskRequest $request)
{
if ($request->action) {
return $this->handleAction($request);
}
$task = $request->entity();

View File

@ -34,6 +34,7 @@ class ProductTransformer extends EntityTransformer
'archived_at' => $this->getTimestamp($product->deleted_at),
'custom_value1' => $product->custom_value1,
'custom_value2' => $product->custom_value2,
'is_deleted' => (bool) $product->is_deleted,
]);
}
}