Revision 1efa86b1
Von Bernd Bleßmann vor fast 3 Jahren hinzugefügt
bin/mozilla/io.pl | ||
---|---|---|
2156 | 2156 |
|
2157 | 2157 |
$::form->{media} = 'email'; |
2158 | 2158 |
|
2159 |
if (($::form->{attachment_policy} // '') =~ m{^(?:old_file|no_file)$}) { |
|
2159 |
$::form->{attachment_policy} //= ''; |
|
2160 |
|
|
2161 |
# Is an old file version available? |
|
2162 |
my $attfile; |
|
2163 |
if ($::form->{attachment_policy} eq 'old_file') { |
|
2164 |
$attfile = SL::File->get_all(object_id => $id, |
|
2165 |
object_type => $::form->{formname}, |
|
2166 |
file_type => 'document'); |
|
2167 |
} |
|
2168 |
|
|
2169 |
if ($::form->{attachment_policy} eq 'no_file' || ($::form->{attachment_policy} eq 'old_file' && $attfile)) { |
|
2160 | 2170 |
$::form->send_email(\%::myconfig, 'pdf'); |
2161 | 2171 |
|
2162 | 2172 |
} else { |
Auch abrufbar als: Unified diff
DMS attachment_policy, falls kein Dokument vorhanden, erste Version erstellen
angepasster commit von Jan