mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-18 12:30:02 +02:00
* All apps: store history of multiline fields as diff only (migration can take 15min!)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user