projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Shop: vergessene locales
[kivitendo-erp.git]
/
SL
/
Common.pm
diff --git
a/SL/Common.pm
b/SL/Common.pm
index
15f8f7b
..
126a30e
100644
(file)
--- a/
SL/Common.pm
+++ b/
SL/Common.pm
@@
-25,6
+25,7
@@
use Encode qw(decode);
use SL::DBUtils;
use SL::DB;
use SL::DBUtils;
use SL::DB;
+use SL::HTML::Util;
sub unique_id {
my ($a, $b) = gettimeofday();
sub unique_id {
my ($a, $b) = gettimeofday();
@@
-387,6
+388,8
@@
sub save_email_status {
my ($self, $myconfig, $form) = @_;
my ($self, $myconfig, $form) = @_;
+ return unless ($::instance_conf->get_email_journal);
+
my ($table, $query, $dbh);
if ($form->{script} eq 'oe.pl') {
my ($table, $query, $dbh);
if ($form->{script} eq 'oe.pl') {
@@
-423,7
+426,7
@@
sub save_email_status {
. $main::locale->text('To (email)') . ": $form->{email}\n"
. "${cc}${bcc}"
. $main::locale->text('Subject') . ": $form->{subject}\n\n"
. $main::locale->text('To (email)') . ": $form->{email}\n"
. "${cc}${bcc}"
. $main::locale->text('Subject') . ": $form->{subject}\n\n"
- . $main::locale->text('Message') . ":
$form->{message}"
;
+ . $main::locale->text('Message') . ":
" . SL::HTML::Util->strip($form->{message})
;
$intnotes =~ s|\r||g;
$intnotes =~ s|\r||g;
@@
-645,6
+648,11
@@
C<full> (replace consecutive line feed/carriage return characters in
the middle by a single space and remove tailing line feed/carriage
return characters).
the middle by a single space and remove tailing line feed/carriage
return characters).
+=item C<save_email_status>
+
+Adds sending information to internal notes.
+Does nothing if the client config email_journal is enabled.
+
=back
=head1 BUGS
=back
=head1 BUGS