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:
parent
804ac66533
commit
60df6b9d8d
@ -149,6 +149,9 @@ class TaskApiController extends BaseAPIController
|
||||
*/
|
||||
public function update(UpdateTaskRequest $request)
|
||||
{
|
||||
if ($request->action) {
|
||||
return $this->handleAction($request);
|
||||
}
|
||||
|
||||
$task = $request->entity();
|
||||
|
||||
|
@ -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,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user