mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-03-14 12:23:33 +00:00
fix(#168): ensure trmnlp_id is unset during plugin duplication to prevent unique constraint violation
Some checks failed
tests / ci (push) Has been cancelled
Some checks failed
tests / ci (push) Has been cancelled
This commit is contained in:
parent
a095268c30
commit
ffd1cf0d7e
2 changed files with 21 additions and 1 deletions
|
|
@ -594,7 +594,7 @@ class Plugin extends Model
|
|||
// Get all attributes except id and uuid
|
||||
// Use toArray() to get cast values (respects JSON casts)
|
||||
$attributes = $this->toArray();
|
||||
unset($attributes['id'], $attributes['uuid']);
|
||||
unset($attributes['id'], $attributes['uuid'], $attributes['trmnlp_id']);
|
||||
|
||||
// Handle render_markup_view - copy file content to render_markup
|
||||
if ($this->render_markup_view) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue