Skip to content

Commit

Permalink
IP-327: (2nd fix) fix bug when a content-manager changes status of pr…
Browse files Browse the repository at this point in the history
…oblem
  • Loading branch information
papandrk committed Dec 17, 2024
1 parent 983c862 commit 3306b2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Problem/ProblemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function getProblemStatusesForManagementPage(): JsonResponse {
return response()->json($this->problemManager->getProblemStatusesForManagementPage());
}

public function updateStatus(Request $request, string $locale, int $id): JsonResponse {
public function updateStatus(Request $request, int $id): JsonResponse {
$this->validate($request, [
'status_id' => 'required|exists:problem_statuses_lkp,id',
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@
</div>
</div>
</div>
<div class="alert-component position-relative d-none" id="problemDeletedAlert">
<div class="alert-component position-relative d-none" id="problemDeletedAlert" style="display: flow-root;">
<div class="alert alert-success" role="alert">
{{ actionSuccessMessage }}
</div>
</div>
<div class="alert-component position-relative d-none" id="errorAlert">
<div class="alert-component position-relative d-none" id="errorAlert" style="display: flow-root;">
<div class="alert alert-danger" role="alert">
{{ errorMessage }}
</div>
Expand Down Expand Up @@ -392,7 +392,7 @@ export default {
if (!this.modalProblem.id) return;
this.modalActionLoading = true;
axios
.put(location.href + "/update-status/" + this.modalProblem.id, {
.put(window.route("api.problems.update-status", this.modalProblem.id), {
status_id: this.modalProblem.status.id,
})
.then(() => {
Expand Down

0 comments on commit 3306b2b

Please sign in to comment.