ignore CR when comparing textfields for history

This commit is contained in:
Ralf Becker 2015-05-26 10:50:42 +00:00
parent 6b0edd339e
commit db180f816d

View File

@ -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 "<p>$name: ".array2string($data[$name]).' != '.array2string($old[$name])."</p>\n";
}