Revision c9b4e6bc
Von Martin Helmling martin.helmling@octosoft.eu vor mehr als 7 Jahren hinzugefügt
SL/Form.pm | ||
---|---|---|
1067 | 1067 |
# therefore copy to webdav, even if we do not have the webdav feature enabled (just archive) |
1068 | 1068 |
my $copy_to_webdav = $::instance_conf->get_webdav_documents && !$self->{preview} && $self->{tmpdir} && $self->{tmpfile} && $self->{type}; |
1069 | 1069 |
|
1070 |
if ( $ext_for_format eq 'pdf' && $::instance_conf->get_doc_storage ) {
|
|
1070 |
if ( $ext_for_format eq 'pdf' && $self->doc_storage_enabled ) {
|
|
1071 | 1071 |
$self->append_general_pdf_attachments(filepath => $self->{tmpdir}."/".$self->{tmpfile}, |
1072 | 1072 |
type => $self->{type}); |
1073 | 1073 |
} |
1074 | 1074 |
if ($self->{media} eq 'file') { |
1075 | 1075 |
copy(join('/', $self->{cwd}, $userspath, $self->{tmpfile}), $out =~ m|^/| ? $out : join('/', $self->{cwd}, $out)) if $template->uses_temp_file; |
1076 | 1076 |
Common::copy_file_to_webdav_folder($self) if $copy_to_webdav; |
1077 |
if (!$self->{preview} && $::instance_conf->get_doc_storage)
|
|
1077 |
if (!$self->{preview} && $self->doc_storage_enabled)
|
|
1078 | 1078 |
{ |
1079 | 1079 |
$self->{attachment_filename} ||= $self->generate_attachment_filename; |
1080 | 1080 |
$self->store_pdf($self); |
... | ... | |
1089 | 1089 |
|
1090 | 1090 |
Common::copy_file_to_webdav_folder($self) if $copy_to_webdav; |
1091 | 1091 |
|
1092 |
if ( !$self->{preview} && $ext_for_format eq 'pdf' && $::instance_conf->get_doc_storage) {
|
|
1092 |
if ( !$self->{preview} && $ext_for_format eq 'pdf' && $self->doc_storage_enabled) {
|
|
1093 | 1093 |
$self->{attachment_filename} ||= $self->generate_attachment_filename; |
1094 | 1094 |
my $file_obj = $self->store_pdf($self); |
1095 | 1095 |
$self->{print_file_id} = $file_obj->id if $file_obj; |
Auch abrufbar als: Unified diff
Filemanagement: Zentralisierte Prüfung ob bei Drucken im DMS gespeichert wird
Prüfung aller Mandanteneinstellung vor Speicherung im DMS,
fixt #286