Commit e3dd5d5f authored by catch's avatar catch

Issue #2994830 by amateescu: TermStorage::__sleep() does not unset the 'ancestors' variable

(cherry picked from commit 39d22bfb)
parent a07de444
......@@ -363,7 +363,7 @@ public function getNodeTerms(array $nids, array $vocabs = [], $langcode = NULL)
public function __sleep() {
$vars = parent::__sleep();
// Do not serialize static cache.
unset($vars['treeChildren'], $vars['treeParents'], $vars['treeTerms'], $vars['trees']);
unset($vars['ancestors'], $vars['treeChildren'], $vars['treeParents'], $vars['treeTerms'], $vars['trees']);
return $vars;
}
......
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