From 1a3bc44a88626635a76c71d63ed010108497f54b Mon Sep 17 00:00:00 2001 From: Jitendra Singh Date: Thu, 6 Feb 2020 19:16:22 +0530 Subject: [PATCH] Issue #2339 fixed --- .../Velocity/src/DataGrids/ContentDataGrid.php | 6 ++++-- .../admin/content/content-type/category.blade.php | 2 +- .../content/content-type/edit-product.blade.php | 2 +- .../src/Resources/views/admin/content/edit.blade.php | 12 ++++++------ 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/packages/Webkul/Velocity/src/DataGrids/ContentDataGrid.php b/packages/Webkul/Velocity/src/DataGrids/ContentDataGrid.php index 66fe0ef38..793d4e24a 100644 --- a/packages/Webkul/Velocity/src/DataGrids/ContentDataGrid.php +++ b/packages/Webkul/Velocity/src/DataGrids/ContentDataGrid.php @@ -84,12 +84,14 @@ class ContentDataGrid extends DataGrid 'searchable' => true, 'filterable' => true, 'wrapper' => function($value) { - if ($value->content_type == 'link') + if ($value->content_type == 'category') + return 'Category Slug'; + else if ($value->content_type == 'link') return 'Link'; else if ($value->content_type == 'product') return 'Product'; else if ($value->content_type == 'static') - return 'Static'; + return 'Static'; } ]); } 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 49625506e..b6b09dfc7 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 @@ -12,7 +12,7 @@ class="control" name="page_link" v-validate="'required|max:150'" - value="{{ isset($locale) ? (old($locale)['page_link'] ?: $content->translate($locale)['page_link']) : '' }}" + value="{{ isset($locale) ? (old($locale)['page_link'] ?? $content->translate($locale)['page_link']) : '' }}" data-vv-as=""{{ __('velocity::app.admin.contents.content.page-link') }}"" /> diff --git a/packages/Webkul/Velocity/src/Resources/views/admin/content/content-type/edit-product.blade.php b/packages/Webkul/Velocity/src/Resources/views/admin/content/content-type/edit-product.blade.php index a46597e09..ef7ba1096 100644 --- a/packages/Webkul/Velocity/src/Resources/views/admin/content/content-type/edit-product.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/admin/content/content-type/edit-product.blade.php @@ -6,7 +6,7 @@ @push('scripts')