Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1efa86b1

Von Bernd Bleßmann vor etwa 3 Jahren hinzugefügt

  • ID 1efa86b1825e32da0644fd3812060dafab3efa8e
  • Vorgänger 6ebb31d0
  • Nachfolger 50e9bb1e

DMS attachment_policy, falls kein Dokument vorhanden, erste Version erstellen

angepasster commit von Jan

Unterschiede anzeigen:

bin/mozilla/io.pl
$::form->{media} = 'email';
if (($::form->{attachment_policy} // '') =~ m{^(?:old_file|no_file)$}) {
$::form->{attachment_policy} //= '';
# Is an old file version available?
my $attfile;
if ($::form->{attachment_policy} eq 'old_file') {
$attfile = SL::File->get_all(object_id => $id,
object_type => $::form->{formname},
file_type => 'document');
}
if ($::form->{attachment_policy} eq 'no_file' || ($::form->{attachment_policy} eq 'old_file' && $attfile)) {
$::form->send_email(\%::myconfig, 'pdf');
} else {

Auch abrufbar als: Unified diff