From 62876ea70302c90bf148f7930b35dcc156d2b525 Mon Sep 17 00:00:00 2001 From: Vivek Sharma Date: Sat, 8 Feb 2020 11:40:29 +0530 Subject: [PATCH] [Fixed: issue #2378 has been resolved.] --- .../admin/content/content-type/category.blade.php | 10 +++++++--- .../admin/content/content-type/edit-product.blade.php | 2 +- .../src/Resources/views/admin/content/create.blade.php | 2 ++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/Webkul/Velocity/src/Resources/views/admin/content/content-type/category.blade.php b/packages/Webkul/Velocity/src/Resources/views/admin/content/content-type/category.blade.php index 279257cfe..844919326 100644 --- a/packages/Webkul/Velocity/src/Resources/views/admin/content/content-type/category.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/admin/content/content-type/category.blade.php @@ -6,13 +6,17 @@ {{ __('velocity::app.admin.contents.content.category-slug') }} + @php + $pageTarget = isset($locale) ? (old($locale)['page_link'] ?? (isset($content) ? $content->translate($locale)['page_link'] : '')) : ''; + @endphp + @@ -26,7 +30,7 @@ @php - $linkTarget = isset($locale) ? (old($locale)['link_target'] ?? $content->translate($locale)['link_target']) : ''; + $linkTarget = isset($locale) ? (old($locale)['link_target'] ?? (isset($content) ? $content->translate($locale)['link_target'] : '')) : ''; @endphp