* All apps: store history of multiline fields as diff only (migration can take 15min!)

This commit is contained in:
Ralf Becker
2019-03-01 15:46:54 +01:00
parent e4d865aed2
commit 0abec539c3
3 changed files with 59 additions and 3 deletions

View File

@@ -311,7 +311,9 @@ class History
protected static function needs_diff($name, $value)
{
return $name == 'note' || $name == 'description' ||
($value && (strlen($value) > 50 || strstr($value, "\n") !== FALSE));
return $name == 'note' || // Addressbook
strpos($name, 'description') !== false || // Calendar, Records, Timesheet, ProjectManager, Resources
$name == 'De' || // Tracker, InfoLog
($value && (strlen($value) > 200 || strstr($value, "\n") !== FALSE));
}
}