mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-24 12:17:05 -08:00
checks to see if a user has an email before sending them a reminder email.
This commit is contained in:
parent
9a5c1b8126
commit
6c3a668400
|
@ -1178,6 +1178,10 @@ class ReportsController extends Controller
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($assetItem->assignedTo->email == ''){
|
||||||
|
return redirect()->route('reports/unaccepted_assets')->with('error', trans('general.no_email'));
|
||||||
|
}
|
||||||
|
|
||||||
return redirect()->route('reports/unaccepted_assets')->with('success', trans('admin/reports/general.reminder_sent'));
|
return redirect()->route('reports/unaccepted_assets')->with('success', trans('admin/reports/general.reminder_sent'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -201,6 +201,7 @@ return [
|
||||||
'new_password' => 'New Password',
|
'new_password' => 'New Password',
|
||||||
'next' => 'Next',
|
'next' => 'Next',
|
||||||
'next_audit_date' => 'Next Audit Date',
|
'next_audit_date' => 'Next Audit Date',
|
||||||
|
'no_email' => 'No email address associated with this user',
|
||||||
'last_audit' => 'Last Audit',
|
'last_audit' => 'Last Audit',
|
||||||
'new' => 'new!',
|
'new' => 'new!',
|
||||||
'no_depreciation' => 'No Depreciation',
|
'no_depreciation' => 'No Depreciation',
|
||||||
|
|
Loading…
Reference in a new issue