summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--C4/Letters.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/C4/Letters.pm b/C4/Letters.pm
index 4acc931..519c0f6 100644
--- a/C4/Letters.pm
+++ b/C4/Letters.pm
@@ -654,3 +654,6 @@ sub _parseletter {
my $replacedby = defined ($val) ? $val : '';
- if ( $replacedby and $replacedby =~ m|^\d{4}-\d{2}-\d{2}( \d{2}:\d{2}:\d{2})?$| ) {
+ if ( $replacedby
+ and not $replacedby =~ m|0000-00-00|
+ and $replacedby =~ m|^\d{4}-\d{2}-\d{2}( \d{2}:\d{2}:\d{2})?$| )
+ {
# If the value is XXXX-YY-ZZ[ AA:BB:CC] we assume it is a date