-
-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Description
Hello,
I get an error when I try to delete a template that has a Trix field without an attachment:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nova_trix_attachments' does not exist
I think the error comes from this line:
https://github.com/spatie/nova-translatable/blob/3.x/src/Translatable.php#L254
By default attachments are disabled and this method force its activation ($this->withFiles = true;)
By removing the withFiles() I no longer get the error
private function createTrixUploadField(Trix $field, string $locale): Trix
{
return Trix::make('translations_' . $field->attribute . '_' . $locale)
/* ->withFiles(
$field->getStorageDisk(),
$field->getStorageDir()
) */
->hideFromIndex()
->hideWhenCreating()
->hideFromDetail()
->hideWhenUpdating();
}Sincerely
Metadata
Metadata
Assignees
Labels
No labels