From 2d8d6e19d1c6aa8b18aabe9f93b503e5f805e6f5 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Wed, 21 Aug 2019 09:50:06 +0300 Subject: [PATCH] fixed create City && fixed create ad --- .../advs-module/src/Http/Controller/advsController.php | 2 +- .../resources/views/location/admin-sub-location.twig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 278c7ede4..bec27924e 100644 --- a/addons/default/visiosoft/advs-module/src/Http/Controller/advsController.php +++ b/addons/default/visiosoft/advs-module/src/Http/Controller/advsController.php @@ -323,7 +323,7 @@ class AdvsController extends PublicController $messages->pull('error'); $isActiveDopings = $advModel->is_enabled('dopings'); if ($request->action == "update") { - $error = $form->build()->validate()->getFormErrors()->getMessages(); + $error = $form->build($request->update_id)->validate()->getFormErrors()->getMessages(); if (!empty($error)) { return $this->redirect->back(); } diff --git a/addons/default/visiosoft/location-module/resources/views/location/admin-sub-location.twig b/addons/default/visiosoft/location-module/resources/views/location/admin-sub-location.twig index 814331626..f2cad4145 100644 --- a/addons/default/visiosoft/location-module/resources/views/location/admin-sub-location.twig +++ b/addons/default/visiosoft/location-module/resources/views/location/admin-sub-location.twig @@ -2,7 +2,7 @@ {% block content %} {% include "theme::partials/messages" %} - {% set form = form('advs', app.request.query|keys|first).entry(id).get() %} + {% set form = form('location', app.request.query|keys|first).entry(id).get() %} {{ form_open()|raw }}