From 2ea07e95a39c2bd6918f0a3e42a21ad571b13d53 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Fri, 14 Feb 2020 19:01:29 +0300 Subject: [PATCH 1/3] profile address edit fixed --- .../src/Http/Controller/MyProfileController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/default/visiosoft/profile-module/src/Http/Controller/MyProfileController.php b/addons/default/visiosoft/profile-module/src/Http/Controller/MyProfileController.php index bdb1f577e..38c734670 100644 --- a/addons/default/visiosoft/profile-module/src/Http/Controller/MyProfileController.php +++ b/addons/default/visiosoft/profile-module/src/Http/Controller/MyProfileController.php @@ -188,7 +188,7 @@ class MyProfileController extends PublicController $message = []; $message[] = trans('visiosoft.module.profile::message.adress_success_update'); - return redirect('/profile')->with('success', $message); + return redirect(route('profile::address'))->with('success', $message); } } @@ -208,7 +208,7 @@ class MyProfileController extends PublicController $message = []; $message[] = trans('visiosoft.module.profile::message.adress_success_create'); - return redirect('/profile/adress')->with('success', $message); + return redirect(route('profile::address'))->with('success', $message); } $country = CountryModel::all(); return $this->view->make('visiosoft.module.profile::address/create', compact('country')); From fd9bbe20adaecf314f79404942bfc33e6dd51911 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Mon, 17 Feb 2020 09:38:38 +0300 Subject: [PATCH 2/3] fixed password update --- .../src/Profile/Password/PasswordFormHandler.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/default/visiosoft/profile-module/src/Profile/Password/PasswordFormHandler.php b/addons/default/visiosoft/profile-module/src/Profile/Password/PasswordFormHandler.php index 61d0c7161..0f9bdba2c 100644 --- a/addons/default/visiosoft/profile-module/src/Profile/Password/PasswordFormHandler.php +++ b/addons/default/visiosoft/profile-module/src/Profile/Password/PasswordFormHandler.php @@ -1,6 +1,7 @@ back(); } - $userModel->find(Auth::id()) - ->update([ - 'password' => Hash::make($builder->getPostValue('new_password')) - ]); + $user = User::query()->find(Auth::id()); + $user->setAttribute('password', $builder->getPostValue('new_password')); + $user->save($user->toArray()); $messages->success(trans('visiosoft.module.profile::message.your_password_changed')); } } From 0621b4c03bd5b63bd4e1190931bf2bd90298a124 Mon Sep 17 00:00:00 2001 From: vedatakd Date: Mon, 17 Feb 2020 10:40:58 +0300 Subject: [PATCH 3/3] main photo show icon && remove list-style for new ad location --- .../visiosoft/location-module/resources/views/new-ad/map.twig | 2 +- .../media-field_type/resources/views/table/partials/body.twig | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/default/visiosoft/location-module/resources/views/new-ad/map.twig b/addons/default/visiosoft/location-module/resources/views/new-ad/map.twig index d7df722f9..d0a74f565 100644 --- a/addons/default/visiosoft/location-module/resources/views/new-ad/map.twig +++ b/addons/default/visiosoft/location-module/resources/views/new-ad/map.twig @@ -1,7 +1,7 @@ {% if setting_value('visiosoft.module.location::create_ad_page_location') %}
-
    +
    • {{ form.fields.country|raw }}
    • diff --git a/addons/default/visiosoft/media-field_type/resources/views/table/partials/body.twig b/addons/default/visiosoft/media-field_type/resources/views/table/partials/body.twig index 28e133dee..6a6e645a1 100644 --- a/addons/default/visiosoft/media-field_type/resources/views/table/partials/body.twig +++ b/addons/default/visiosoft/media-field_type/resources/views/table/partials/body.twig @@ -11,6 +11,9 @@
      {{ buttons(row.buttons)|raw }}
      + {% if loop.index == 1 %} +
      + {% endif %}
{% endfor %}