mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for UUID resolution
This commit is contained in:
parent
ea57efd1cf
commit
195d96c7be
@ -56,7 +56,7 @@ class ExportController extends BaseController
|
||||
*/
|
||||
public function index(StoreExportRequest $request)
|
||||
{
|
||||
$hash = Str::uuid();
|
||||
$hash = Str::uuid()->toString();
|
||||
$url = \Illuminate\Support\Facades\URL::temporarySignedRoute('protected_download', now()->addHour(), ['hash' => $hash]);
|
||||
Cache::put($hash, $url, now()->addHour());
|
||||
|
||||
|
@ -45,7 +45,7 @@ class ActivityReportController extends BaseController
|
||||
|
||||
if($request->has('output') && $request->input('output') == 'json') {
|
||||
|
||||
$hash = \Illuminate\Support\Str::uuid();
|
||||
$hash = \Illuminate\Support\Str::uuid()->toString();
|
||||
|
||||
PreviewReport::dispatch($user->company(), $request->all(), ActivityExport::class, $hash);
|
||||
|
||||
|
@ -76,7 +76,7 @@ class ClientContactReportController extends BaseController
|
||||
// expect a list of visible fields, or use the default
|
||||
if($request->has('output') && $request->input('output') == 'json') {
|
||||
|
||||
$hash = \Illuminate\Support\Str::uuid();
|
||||
$hash = \Illuminate\Support\Str::uuid()->toString();
|
||||
|
||||
PreviewReport::dispatch($user->company(), $request->all(), ContactExport::class, $hash);
|
||||
|
||||
|
@ -76,7 +76,7 @@ class ClientReportController extends BaseController
|
||||
// expect a list of visible fields, or use the default
|
||||
if($request->has('output') && $request->input('output') == 'json') {
|
||||
|
||||
$hash = \Illuminate\Support\Str::uuid();
|
||||
$hash = \Illuminate\Support\Str::uuid()->toString();
|
||||
|
||||
PreviewReport::dispatch($user->company(), $request->all(), ClientExport::class, $hash);
|
||||
|
||||
|
@ -75,7 +75,7 @@ class CreditReportController extends BaseController
|
||||
|
||||
if($request->has('output') && $request->input('output') == 'json') {
|
||||
|
||||
$hash = \Illuminate\Support\Str::uuid();
|
||||
$hash = \Illuminate\Support\Str::uuid()->toString();
|
||||
|
||||
PreviewReport::dispatch($user->company(), $request->all(), CreditExport::class, $hash);
|
||||
|
||||
|
@ -76,7 +76,7 @@ class DocumentReportController extends BaseController
|
||||
|
||||
if($request->has('output') && $request->input('output') == 'json') {
|
||||
|
||||
$hash = \Illuminate\Support\Str::uuid();
|
||||
$hash = \Illuminate\Support\Str::uuid()->toString();
|
||||
|
||||
PreviewReport::dispatch($user->company(), $request->all(), DocumentExport::class, $hash);
|
||||
|
||||
|
@ -77,7 +77,7 @@ class ExpenseReportController extends BaseController
|
||||
|
||||
if($request->has('output') && $request->input('output') == 'json') {
|
||||
|
||||
$hash = \Illuminate\Support\Str::uuid();
|
||||
$hash = \Illuminate\Support\Str::uuid()->toString();
|
||||
|
||||
PreviewReport::dispatch($user->company(), $request->all(), ExpenseExport::class, $hash);
|
||||
|
||||
|
@ -74,7 +74,7 @@ class InvoiceItemReportController extends BaseController
|
||||
|
||||
if($request->has('output') && $request->input('output') == 'json') {
|
||||
|
||||
$hash = \Illuminate\Support\Str::uuid();
|
||||
$hash = \Illuminate\Support\Str::uuid()->toString();
|
||||
|
||||
PreviewReport::dispatch($user->company(), $request->all(), InvoiceItemExport::class, $hash);
|
||||
|
||||
|
@ -74,7 +74,7 @@ class InvoiceReportController extends BaseController
|
||||
|
||||
if($request->has('output') && $request->input('output') == 'json') {
|
||||
|
||||
$hash = \Illuminate\Support\Str::uuid();
|
||||
$hash = \Illuminate\Support\Str::uuid()->toString();
|
||||
|
||||
PreviewReport::dispatch($user->company(), $request->all(), InvoiceExport::class, $hash);
|
||||
|
||||
|
@ -76,7 +76,7 @@ class PaymentReportController extends BaseController
|
||||
|
||||
if($request->has('output') && $request->input('output') == 'json') {
|
||||
|
||||
$hash = \Illuminate\Support\Str::uuid();
|
||||
$hash = \Illuminate\Support\Str::uuid()->toString();
|
||||
|
||||
PreviewReport::dispatch($user->company(), $request->all(), PaymentExport::class, $hash);
|
||||
|
||||
|
@ -77,7 +77,7 @@ class ProductReportController extends BaseController
|
||||
|
||||
if($request->has('output') && $request->input('output') == 'json') {
|
||||
|
||||
$hash = \Illuminate\Support\Str::uuid();
|
||||
$hash = \Illuminate\Support\Str::uuid()->toString();
|
||||
|
||||
PreviewReport::dispatch($user->company(), $request->all(), ProductExport::class, $hash);
|
||||
|
||||
|
@ -43,7 +43,7 @@ class PurchaseOrderItemReportController extends BaseController
|
||||
|
||||
if($request->has('output') && $request->input('output') == 'json') {
|
||||
|
||||
$hash = \Illuminate\Support\Str::uuid();
|
||||
$hash = \Illuminate\Support\Str::uuid()->toString();
|
||||
|
||||
PreviewReport::dispatch($user->company(), $request->all(), PurchaseOrderItemExport::class, $hash);
|
||||
|
||||
|
@ -45,7 +45,7 @@ class PurchaseOrderReportController extends BaseController
|
||||
|
||||
if($request->has('output') && $request->input('output') == 'json') {
|
||||
|
||||
$hash = \Illuminate\Support\Str::uuid();
|
||||
$hash = \Illuminate\Support\Str::uuid()->toString();
|
||||
|
||||
PreviewReport::dispatch($user->company(), $request->all(), PurchaseOrderExport::class, $hash);
|
||||
|
||||
|
@ -75,7 +75,7 @@ class QuoteItemReportController extends BaseController
|
||||
|
||||
if($request->has('output') && $request->input('output') == 'json') {
|
||||
|
||||
$hash = \Illuminate\Support\Str::uuid();
|
||||
$hash = \Illuminate\Support\Str::uuid()->toString();
|
||||
|
||||
PreviewReport::dispatch($user->company(), $request->all(), QuoteItemExport::class, $hash);
|
||||
|
||||
|
@ -75,7 +75,7 @@ class QuoteReportController extends BaseController
|
||||
|
||||
if($request->has('output') && $request->input('output') == 'json') {
|
||||
|
||||
$hash = \Illuminate\Support\Str::uuid();
|
||||
$hash = \Illuminate\Support\Str::uuid()->toString();
|
||||
|
||||
PreviewReport::dispatch($user->company(), $request->all(), QuoteExport::class, $hash);
|
||||
|
||||
|
@ -44,7 +44,7 @@ class RecurringInvoiceReportController extends BaseController
|
||||
|
||||
if($request->has('output') && $request->input('output') == 'json') {
|
||||
|
||||
$hash = \Illuminate\Support\Str::uuid();
|
||||
$hash = \Illuminate\Support\Str::uuid()->toString();
|
||||
|
||||
PreviewReport::dispatch($user->company(), $request->all(), RecurringInvoiceExport::class, $hash);
|
||||
|
||||
|
@ -75,7 +75,7 @@ class TaskReportController extends BaseController
|
||||
|
||||
if($request->has('output') && $request->input('output') == 'json') {
|
||||
|
||||
$hash = \Illuminate\Support\Str::uuid();
|
||||
$hash = \Illuminate\Support\Str::uuid()->toString();
|
||||
|
||||
PreviewReport::dispatch($user->company(), $request->all(), TaskExport::class, $hash);
|
||||
|
||||
|
@ -43,7 +43,7 @@ class VendorReportController extends BaseController
|
||||
|
||||
if($request->has('output') && $request->input('output') == 'json') {
|
||||
|
||||
$hash = \Illuminate\Support\Str::uuid();
|
||||
$hash = \Illuminate\Support\Str::uuid()->toString();
|
||||
|
||||
PreviewReport::dispatch($user->company(), $request->all(), VendorExport::class, $hash);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user