Revision b2d84264
Von Bernd Bleßmann vor mehr als 1 Jahr hinzugefügt
SL/Mailer.pm | ||
---|---|---|
350 | 350 |
my ($self) = @_; |
351 | 351 |
|
352 | 352 |
# check for custom/overloaded types and ids (form != controller) |
353 |
my $record_type = $self->{record_type} || $::form->{type}; |
|
353 |
my $record_type = $self->{record_type} || $::form->{type} || '';
|
|
354 | 354 |
my $record_id = $self->{record_id} || $::form->{id}; |
355 | 355 |
|
356 | 356 |
# you may send mails for unsaved objects (no record_id => unlinkable case) |
... | ... | |
369 | 369 |
sub _default_from { |
370 | 370 |
my ($self) = @_; |
371 | 371 |
|
372 |
my $record_type = $self->{record_type} || $::form->{type} || $self->{driver}{form}{formname}; |
|
372 |
my $record_type = $self->{record_type} || $::form->{type} || $self->{driver}{form}{formname} || '';
|
|
373 | 373 |
my $record_email = exists $type_to_email{$record_type} ? $type_to_email{$record_type}->() : undef; |
374 | 374 |
$self->{from} = $record_email if $record_email; |
375 | 375 |
} |
Auch abrufbar als: Unified diff
SL::Mailer: Warnungen: Uninitialisierte Variablen