note box is now missing when unchecking setting
This commit is contained in:
@@ -118,7 +118,7 @@ class AssetCheckinController extends Controller
|
||||
|
||||
$settings = \App\Models\Setting::getSettings();
|
||||
|
||||
if($settings->require_checkinout_notes == '1' && (is_null($request->note))) {
|
||||
if($settings->require_checkinout_notes && (is_null($request->note))) {
|
||||
return redirect()->to("hardware/$assetId/checkin")->with('error', trans('admin/hardware/message.update.no_note'));
|
||||
}
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ class AssetCheckoutController extends Controller
|
||||
|
||||
$settings = \App\Models\Setting::getSettings();
|
||||
|
||||
if($settings->require_checkinout_notes == '1' && (is_null($request->note))) {
|
||||
if($settings->require_checkinout_notes && (is_null($request->note))) {
|
||||
return redirect()->to("hardware/$assetId/checkout")->with('error', trans('admin/hardware/message.update.no_note'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user