fix(#168): ensure trmnlp_id is unset during plugin duplication to prevent unique constraint violation
Some checks failed
tests / ci (push) Has been cancelled

This commit is contained in:
Benjamin Nussbaum 2026-01-21 23:16:27 +01:00
parent a095268c30
commit ffd1cf0d7e
2 changed files with 21 additions and 1 deletions

View file

@ -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) {