note box is now missing when unchecking setting

This commit is contained in:
akemidx
2024-10-02 18:52:33 -04:00
parent 06e3bb7fd1
commit e00a1aec02
4 changed files with 12 additions and 4 deletions
@@ -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'));
}