From 42c7f41d24cef352a227590dc3f1e66b7265f04d Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 21 Feb 2018 10:06:23 -0800 Subject: [PATCH] Added some alerting in custom fields if it looks like the db_column and real column do not match --- resources/views/custom_fields/index.blade.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/views/custom_fields/index.blade.php b/resources/views/custom_fields/index.blade.php index 76eba2d23..88acf4de9 100644 --- a/resources/views/custom_fields/index.blade.php +++ b/resources/views/custom_fields/index.blade.php @@ -98,7 +98,12 @@ {{ $field->name }} {{ $field->help_text }} - {{ $field->convertUnicodeDbSlug() }} + + {{ $field->convertUnicodeDbSlug() }} + @if ($field->convertUnicodeDbSlug()!=$field->db_column) +
WARNING. This field is in the custom fields table as {{ $field->db_column }} but should be {{ $field->convertUnicodeDbSlug() }}. + @endif + {{ $field->format }} {{ $field->element }}