Skip to content

Commit

Permalink
Merge pull request bagisto#8646 from shivendra-webkul/2.x
Browse files Browse the repository at this point in the history
fixed root category delete message issue
  • Loading branch information
jitendra-webkul committed Oct 11, 2023
2 parents e69f777 + ee68bc1 commit 932fb0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function massDestroy(MassDestroyRequest $massDestroyRequest): JsonRespons
if (! $this->isCategoryDeletable($category)) {
$suppressFlash = false;

session()->flash('warning', trans('admin::app.catalog.categories.delete-category-root'));
return new JsonResponse(['message' => trans('admin::app.catalog.categories.delete-category-root')], 400);
} else {
try {
$suppressFlash = true;
Expand Down

0 comments on commit 932fb0d

Please sign in to comment.