From edb4194a19ef4e4442102db5fc90a368a083be18 Mon Sep 17 00:00:00 2001 From: vedatakdogan Date: Mon, 23 Nov 2020 16:16:46 +0300 Subject: [PATCH 1/2] date format --- .../profile-module/resources/views/profile/detail.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/default/visiosoft/profile-module/resources/views/profile/detail.twig b/addons/default/visiosoft/profile-module/resources/views/profile/detail.twig index a4c67a723..381a388d5 100644 --- a/addons/default/visiosoft/profile-module/resources/views/profile/detail.twig +++ b/addons/default/visiosoft/profile-module/resources/views/profile/detail.twig @@ -146,7 +146,7 @@ - {{ profileForm.fields.birthday.input|raw }} + {{ profileForm.fields.birthday.configSet('date_format','Y-m-d').setPlaceholder(now|date('Y-m-d')).input|raw }} From eb5eb188faa86e0281bc733be1bfdebe13084d79 Mon Sep 17 00:00:00 2001 From: vedatakdogan Date: Mon, 23 Nov 2020 16:24:07 +0300 Subject: [PATCH 2/2] hidden undefined country and city for profile ads --- .../visiosoft/profile-module/resources/assets/js/ads.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/default/visiosoft/profile-module/resources/assets/js/ads.js b/addons/default/visiosoft/profile-module/resources/assets/js/ads.js index 0b94b2ebf..05128b421 100644 --- a/addons/default/visiosoft/profile-module/resources/assets/js/ads.js +++ b/addons/default/visiosoft/profile-module/resources/assets/js/ads.js @@ -93,6 +93,8 @@ getMyAdvs(type); function addAdsRow(id, href, image, name, formatted_price, city, country, cat1, cat2, status) { + city = (city) ? city : ''; + country = (country) ? country : ''; return "
\n" + "
\n" + "
\n" + @@ -160,7 +162,7 @@ function dropdownRow(id, type) { return dropdown; } -function addDropdownBlock () { +function addDropdownBlock() { const dropdowns = $('.my-ads-dropdown') for (let i = 0; i < dropdowns.length; i++) { const currentDropdown = $(dropdowns[i])