Skip to content

A free open source IT asset/license management system

Added some alerting in custom fields if it looks like the db_column and real column do not match

snipe42c7f41d24ce
diff --git a/resources/views/custom_fields/index.blade.php b/resources/views/custom_fields/index.blade.php
index 76eba2d236..88acf4de90 100644
--- a/resources/views/custom_fields/index.blade.php
+++ b/resources/views/custom_fields/index.blade.php
@@ -98,7 +98,12 @@
<tr>
<td>{{ $field->name }}</td>
<td>{{ $field->help_text }}</td>
- <td>{{ $field->convertUnicodeDbSlug() }}</td>
+ <td>
+ <code>{{ $field->convertUnicodeDbSlug() }}</code>
+ @if ($field->convertUnicodeDbSlug()!=$field->db_column)
+ <br><i class="fa fa-warning text-danger"></i>WARNING. This field is in the custom fields table as <code>{{ $field->db_column }}</code> but should be <code>{{ $field->convertUnicodeDbSlug() }}</code>.
+ @endif
+ </td>
<td>{{ $field->format }}</td>
<td>{{ $field->element }}</td>
<td>