Skip to content

A free open source IT asset/license management system

Fixed Laravel 5.7 compatibility issue re: boot() method

snipeb80b91514de2
diff --git a/app/Models/CustomField.php b/app/Models/CustomField.php
index eef6a55d9a..390c6500b8 100644
--- a/app/Models/CustomField.php
+++ b/app/Models/CustomField.php
@@ -87,6 +87,7 @@ class CustomField extends Model
*/
public static function boot()
{
+ parent::boot();
self::created(function ($custom_field) {
// Column already exists on the assets table - nothing to do here.