From db180f816d13db9b07a055c5acf2a947674ea8d0 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 26 May 2015 10:50:42 +0000 Subject: [PATCH] ignore CR when comparing textfields for history --- etemplate/inc/class.bo_tracking.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etemplate/inc/class.bo_tracking.inc.php b/etemplate/inc/class.bo_tracking.inc.php index 538dab67ff..084a98f73b 100644 --- a/etemplate/inc/class.bo_tracking.inc.php +++ b/etemplate/inc/class.bo_tracking.inc.php @@ -469,6 +469,10 @@ abstract class bo_tracking if ($data[$name] == $old[$name]) continue; } } + elseif (str_replace("\r", '', $old[$name]) == str_replace("\r", '', $data[$name])) + { + continue; // change only in CR (eg. different OS) --> ignore + } $changed_fields[] = $name; //echo "

$name: ".array2string($data[$name]).' != '.array2string($old[$name])."

\n"; }