diff --git a/addons/default/visiosoft/advs-module/resources/views/ad-detail/partials/content.twig b/addons/default/visiosoft/advs-module/resources/views/ad-detail/partials/content.twig index 94c4c62f2..21b078018 100644 --- a/addons/default/visiosoft/advs-module/resources/views/ad-detail/partials/content.twig +++ b/addons/default/visiosoft/advs-module/resources/views/ad-detail/partials/content.twig @@ -38,7 +38,7 @@ diff --git a/addons/default/visiosoft/advs-module/src/Http/Controller/advsController.php b/addons/default/visiosoft/advs-module/src/Http/Controller/advsController.php index 7a2f7af0e..051e0b5db 100644 --- a/addons/default/visiosoft/advs-module/src/Http/Controller/advsController.php +++ b/addons/default/visiosoft/advs-module/src/Http/Controller/advsController.php @@ -1070,21 +1070,4 @@ class AdvsController extends PublicController $this->messages->success(trans('visiosoft.module.advs::message.extended', ['number' => $adsExtended])); return $this->redirect->back(); } - - public function saveComment($id) - { - $comment = $this->request->validate([ - 'rating' => 'required', - 'username' => 'required', - 'title' => 'required', - 'detail' => 'required', - ]); - - if ($adv = $this->adv_repository->find($id)) { - event(new CreateNewComment($adv, $comment)); - $this->messages->success(trans('visiosoft.module.comments::message.comment_success')); - } else { - $this->messages->error(trans('visiosoft.module.comments::message.comment_error')); - } - } } \ No newline at end of file