Skip to content

Commit 3ec10cd

Browse files
simonhampclaude
andcommitted
Fix is_official auto-set to not override explicitly provided values
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9866ee8 commit 3ec10cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function routeParams(): array
6565
protected static function booted(): void
6666
{
6767
static::saving(function (Plugin $plugin): void {
68-
if ($plugin->isDirty('name') && $plugin->name) {
68+
if ($plugin->isDirty('name') && $plugin->name && ! $plugin->isDirty('is_official')) {
6969
$vendor = explode('/', $plugin->name)[0] ?? null;
7070
$plugin->is_official = $vendor === 'nativephp';
7171
}

0 commit comments

Comments
 (0)