ms client update

This commit is contained in:
stasbilay02 committed 2024-10-31 16:12:02 +03:00
1 parent 9d243b5b35
commit a02c55e16e
19 files changed
+75 -142

No files matched your search

@@ -32,7 +32,7 @@ class PostController extends AdminController
if ($postForm->validate()) {
$post = $this->postService->create($postForm);
if ($post) {
$this->redirect("/admin/post/" . $post->id);
$this->redirect("/admin/post/view/" . $post->id);
}
}
$this->redirect("/admin/post/create");
@@ -87,7 +87,7 @@ class PostController extends AdminController
if ($postForm->validate()) {
$post = $this->postService->update($postForm, $post);
if ($post) {
$this->redirect("/admin/post/" . $post->id);
$this->redirect("/admin/post/view/" . $post->id);
}
}
$this->redirect("/admin/post/update/" . $id);