mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 22:07:29 -08:00
Throw a warning if there were no users affected
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
a8a3ca3624
commit
dc6eb6f104
|
@ -184,6 +184,10 @@ class LicenseCheckoutController extends Controller
|
|||
}
|
||||
}
|
||||
|
||||
if ($assigned_count == 0) {
|
||||
return redirect()->back()->with('warning', trans('admin/licenses/general.bulk.checkout_all.warn_no_avail_users', ['count' => $assigned_count]));
|
||||
}
|
||||
|
||||
return redirect()->back()->with('success', trans_choice('admin/licenses/general.bulk.checkout_all.success', 2, ['count' => $assigned_count] ));
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue