refx
This commit is contained in:
parent
72def5d9dd
commit
52fa74197f
@ -51,16 +51,18 @@ public function save(StoreReportRequest $request)
|
|||||||
|
|
||||||
if ($reportStatus->value === ReportStatus::Finalized->value) {
|
if ($reportStatus->value === ReportStatus::Finalized->value) {
|
||||||
$report->setStatus($reportStatus);
|
$report->setStatus($reportStatus);
|
||||||
|
|
||||||
$study->setReportStatus($reportStatus);
|
$study->setReportStatus($reportStatus);
|
||||||
audit()
|
audit()
|
||||||
->on($study)
|
->on($study)
|
||||||
->did(Activity::Report_Finalize)
|
->did(Activity::Report_Finalize)
|
||||||
->log();
|
->log();
|
||||||
|
|
||||||
|
$study->unlockStudy();
|
||||||
audit()
|
audit()
|
||||||
->on($study)
|
->on($study)
|
||||||
->did(Activity::Study_Unlock)
|
->did(Activity::Study_Unlock)
|
||||||
->log();
|
->log();
|
||||||
$study->unlockStudy();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('staff.reports.close-window');
|
return view('staff.reports.close-window');
|
||||||
|
Loading…
Reference in New Issue
Block a user