mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Send users to overview page instead of edit for React
This commit is contained in:
parent
a0143a3f44
commit
c2af62fd4d
@ -59,7 +59,7 @@ class SearchController extends Controller
|
||||
'name' => $client->present()->name(),
|
||||
'type' => '/client',
|
||||
'id' => $client->hashed_id,
|
||||
'path' => "/clients/{$client->hashed_id}/edit"
|
||||
'path' => "/clients/{$client->hashed_id}"
|
||||
];
|
||||
|
||||
$client->contacts->each(function ($contact) {
|
||||
|
@ -58,7 +58,8 @@ class InvoiceEmailFailedActivity implements ShouldQueue
|
||||
$fields->client_contact_id = $event->invitation->client_contact_id;
|
||||
$fields->company_id = $event->invitation->invoice->company_id;
|
||||
$fields->activity_type_id = Activity::EMAIL_INVOICE_FAILED;
|
||||
|
||||
$fields->notes = $event->message ?? '';
|
||||
|
||||
$this->activity_repo->save($fields, $event->invitation->invoice, $event->event_vars);
|
||||
}
|
||||
}
|
||||
|
@ -11,10 +11,11 @@
|
||||
|
||||
namespace App\Listeners\Invoice;
|
||||
|
||||
use App\Libraries\MultiDB;
|
||||
use App\Jobs\Mail\NinjaMailer;
|
||||
use App\Jobs\Mail\NinjaMailerJob;
|
||||
use App\Jobs\Mail\NinjaMailerObject;
|
||||
use App\Libraries\MultiDB;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use App\Mail\Admin\EntityFailedSendObject;
|
||||
use App\Utils\Traits\Notifications\UserNotifies;
|
||||
|
||||
@ -36,7 +37,8 @@ class InvoiceFailedEmailNotification
|
||||
{
|
||||
MultiDB::setDb($event->company->db);
|
||||
|
||||
$first_notification_sent = true;
|
||||
if(Cache::has("invoice_failed_email_notification_{$event->invitation->key}"))
|
||||
return;
|
||||
|
||||
$invoice = $event->invitation->invoice;
|
||||
|
||||
@ -58,8 +60,9 @@ class InvoiceFailedEmailNotification
|
||||
|
||||
$nmo = null;
|
||||
|
||||
$first_notification_sent = false;
|
||||
}
|
||||
}
|
||||
|
||||
Cache::put("invoice_failed_email_notification_{$event->invitation->key}", true, 60 * 60);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user