From ee900fbafc328ac5eea80ffb9d1f9db0a6147c89 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 26 May 2015 10:50:04 +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"; }