}
}
if ($self->order->ordnumber && $::instance_conf->get_doc_storage) {
- SL::File->save( object_id => $self->order->id,
+ eval {
+ SL::File->save(object_id => $self->order->id,
object_type => $self->type,
mime_type => 'application/pdf',
source => 'created',
file_type => 'document',
file_name => $pdf_filename,
file_contents => $pdf);
+ 1;
+ } or do {
+ $self->js->flash('error', t8('Storing PDF in storage backend failed: #1', $@));
+ }
}
$self->js->render;
}
'Storage Type for generated/imported PDF Documents' => 'Speichertyp für erzeugte oder importierte Dokumente',
'Storage Type for images' => 'Speichertyp für Bilder',
'Storage Type for shopimages' => 'Speichertyp für Shopbilder',
+ 'Storing PDF in storage backend failed: #1' => 'Speichern der PDF-Datei im Datei-Speicher fehlgeschlagen: #1',
'Storing PDF to webdav folder failed: #1' => 'Speichern der PDF im WebDAV Ordner fehlgeschlagen: #1',
'Storing the emails in the journal is currently disabled in the client configuration.' => 'Das Speichern von versendeten E-Mails ist derzeit in der Mandantenkonfigurierung abgeschaltet.',
'Storno' => 'Storno',
'Storage Type for generated/imported PDF Documents' => '',
'Storage Type for images' => '',
'Storage Type for shopimages' => '',
+ 'Storing PDF in storage backend failed: #1' => '',
'Storing PDF to webdav folder failed: #1' => '',
'Storing the emails in the journal is currently disabled in the client configuration.' => '',
'Storno' => '',