projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74f245f
)
Locale: Bei parase_date_string undef sofort undef zurückgeben.
author
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 29 May 2015 13:37:09 +0000
(15:37 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 29 May 2015 13:37:09 +0000
(15:37 +0200)
SL/Locale.pm
patch
|
blob
|
history
diff --git
a/SL/Locale.pm
b/SL/Locale.pm
index
4cbef16
..
d1d9f04
100644
(file)
--- a/
SL/Locale.pm
+++ b/
SL/Locale.pm
@@
-376,6
+376,8
@@
sub parse_date {
sub parse_date_to_object {
my ($self, $string, %params) = @_;
+ return undef if !defined $string;
+
$params{dateformat} ||= $::myconfig{dateformat} || 'yy-mm-dd';
$params{numberformat} ||= $::myconfig{numberformat} || '1,000.00';
my $num_separator = $params{numberformat} =~ m{,\d+$} ? ',' : '.';