added support for legacy tickets, fixed switching of modes and also style updates
This commit is contained in:
@@ -9,5 +9,6 @@ use Illuminate\Database\Eloquent\Model;
|
||||
final class LegacyCategory extends Model
|
||||
{
|
||||
protected $table = 'helpdesk_legacy_categories';
|
||||
|
||||
protected $guarded = [];
|
||||
}
|
||||
|
||||
@@ -9,6 +9,8 @@ use Illuminate\Database\Eloquent\Model;
|
||||
final class LegacyComment extends Model
|
||||
{
|
||||
protected $table = 'helpdesk_legacy_comments';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
protected $casts = ['legacy_created_at' => 'datetime', 'legacy_updated_at' => 'datetime'];
|
||||
}
|
||||
|
||||
@@ -10,7 +10,9 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
final class LegacyTicket extends Model
|
||||
{
|
||||
protected $table = 'helpdesk_legacy_tickets';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
protected $casts = ['legacy_data' => 'array', 'legacy_created_at' => 'datetime', 'legacy_updated_at' => 'datetime', 'completed_at' => 'datetime', 'archived_at' => 'datetime'];
|
||||
|
||||
public function comments(): HasMany
|
||||
|
||||
@@ -5,7 +5,6 @@ declare(strict_types=1);
|
||||
namespace Modules\Helpdesk\Models;
|
||||
|
||||
use App\Models\User;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
||||
|
||||
@@ -62,7 +62,6 @@ final class Ticket extends Model
|
||||
return $this->belongsTo(User::class, 'user_id');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Compatibility alias for the requester.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user