A free open source IT asset/license management system
Fixes bug where custom fields would not store new name in custom fields table on edit
snipe36cbffa183bf
diff --git a/app/Models/CustomField.php b/app/Models/CustomField.phpindex 749e74ce59..d85c759775 100644--- a/app/Models/CustomField.php+++ b/app/Models/CustomField.php@@ -62,9 +62,16 @@ class CustomField extends Modelreturn true;}- return Schema::table(CustomField::$table_name, function ($table) use ($custom_field) {++ Schema::table(CustomField::$table_name, function ($table) use ($custom_field) {$table->renameColumn($custom_field->convertUnicodeDbSlug($custom_field->getOriginal("name")), $custom_field->convertUnicodeDbSlug());});+++ $custom_field->db_column = $custom_field->convertUnicodeDbSlug();+ $custom_field->save();++ return true;}return true;});