From 9355689dd45405a53b28bb9c4681b337162deb11 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 27 Jun 2022 11:52:51 -0700 Subject: [PATCH] Nicer output for custom fields error Signed-off-by: snipe --- resources/lang/en/admin/custom_fields/general.php | 2 +- resources/views/custom_fields/index.blade.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lang/en/admin/custom_fields/general.php b/resources/lang/en/admin/custom_fields/general.php index 4c7442b2d5..7434117830 100644 --- a/resources/lang/en/admin/custom_fields/general.php +++ b/resources/lang/en/admin/custom_fields/general.php @@ -41,7 +41,7 @@ return [ 'make_required' => 'Optional - click to make required', 'reorder' => 'Reorder', 'db_field' => 'DB Field', - 'db_convert_warning' => 'WARNING. This field is in the custom fields table as :db_column but should be :expected .', + 'db_convert_warning' => 'WARNING. This field is in the custom fields table as :db_column but should be :expected.', 'is_unique' => 'This value must be unique across all assets', 'unique' => 'Unique', ]; diff --git a/resources/views/custom_fields/index.blade.php b/resources/views/custom_fields/index.blade.php index 6887e07a38..4638f615cb 100644 --- a/resources/views/custom_fields/index.blade.php +++ b/resources/views/custom_fields/index.blade.php @@ -150,7 +150,8 @@ {{ $field->convertUnicodeDbSlug() }} @if ($field->convertUnicodeDbSlug()!=$field->db_column) -
{{!! trans('admin/custom_fields/general.db_convert_warning', array('db_column' => $field->db_column, 'expected' => $field->convertUnicodeDbSlug())) !!}} +
+ {!! trans('admin/custom_fields/general.db_convert_warning',['db_column' => $field->db_column, 'expected' => $field->convertUnicodeDbSlug()]) !!} @endif {{ $field->format }}