Commit f61a6c1f authored by jonnybradley's avatar jonnybradley

[bp/r65928][FIX] trackers: Related to r65927, large tracker items were causing...

[bp/r65928][FIX] trackers: Related to r65927, large tracker items were causing failures in the activity stream storage and indexing when items were too big, so remove redundant info until it fits ok (not sure why everything needs to be in there so many times anyway?)
parent 06b50a73
......@@ -2081,7 +2081,12 @@ class TrackerLib extends TikiLib
}
if (strlen($encoded) >= 65535) {
unset($arguments['values_by_permname'], $arguments['old_values_by_permname']); // fields are duplicated sadly
unset($arguments['old_values_by_permname']); // fields are duplicated sadly
$encoded = json_encode($arguments);
}
if (strlen($encoded) >= 65535) {
unset($arguments['values_by_permname']); // no field values at all
}
TikiLib::events()->trigger(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment