mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix missing includes for triggered actions
This commit is contained in:
parent
c0158b8db6
commit
b0282c2364
@ -28,7 +28,7 @@ class ClientPresenter extends EntityPresenter
|
||||
}
|
||||
|
||||
//$contact = $this->entity->primary_contact->first();
|
||||
$contact = $this->entity->contacts->first();
|
||||
$contact = $this->entity->contacts->whereNotNull('email')->first();
|
||||
|
||||
$contact_name = 'No Contact Set';
|
||||
|
||||
|
@ -12,6 +12,7 @@
|
||||
namespace App\Services\Invoice;
|
||||
|
||||
use App\Events\Invoice\InvoiceWasEmailed;
|
||||
use App\Jobs\Entity\EmailEntity;
|
||||
use App\Jobs\Invoice\EmailEntity;
|
||||
use App\Models\Invoice;
|
||||
use App\Services\AbstractService;
|
||||
|
@ -159,8 +159,8 @@ Route::group(['middleware' => ['api_db', 'token_auth', 'locale'], 'prefix' => 'a
|
||||
|
||||
Route::post('templates', 'TemplateController@show')->name('templates.show');
|
||||
|
||||
Route::resource('tokens', 'TokenController')->middleware('password_protected'); // name = (tokens. index / create / show / update / destroy / edit
|
||||
Route::post('tokens/bulk', 'TokenController@bulk')->name('tokens.bulk')->middleware('password_protected');
|
||||
Route::resource('tokens', 'TokenController'); // name = (tokens. index / create / show / update / destroy / edit
|
||||
Route::post('tokens/bulk', 'TokenController@bulk')->name('tokens.bulk');
|
||||
|
||||
Route::get('settings/enable_two_factor', 'TwoFactorController@setupTwoFactor');
|
||||
Route::post('settings/enable_two_factor', 'TwoFactorController@enableTwoFactor');
|
||||
|
Loading…
x
Reference in New Issue
Block a user