mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
bug fixes
This commit is contained in:
parent
cc40f51f84
commit
1da8f6bc26
@ -1,5 +1,6 @@
|
|||||||
<?php namespace App\Http\Controllers;
|
<?php namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Ninja\Transformers\ProductTransformer;
|
||||||
use Auth;
|
use Auth;
|
||||||
use Str;
|
use Str;
|
||||||
use DB;
|
use DB;
|
||||||
@ -72,7 +73,7 @@ class ProductApiController extends BaseAPIController
|
|||||||
|
|
||||||
$product->save();
|
$product->save();
|
||||||
|
|
||||||
$transformer = new InvoiceTransformer(\Auth::user()->account, Input::get('serializer'));
|
$transformer = new ProductTransformer(\Auth::user()->account, Input::get('serializer'));
|
||||||
$data = $this->createItem($product, $transformer, 'products');
|
$data = $this->createItem($product, $transformer, 'products');
|
||||||
|
|
||||||
return $this->response($data);
|
return $this->response($data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user