From 71048be499b28fa2121881a785f1601ac41c508c Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Tue, 1 Sep 2015 14:38:33 +0000 Subject: [PATCH] Optimization (regression introduced in 2.1.0): huge tables and HTML exports of tickets can take long to execute (require 1 query per fetched row) SVN:trunk[3708] --- core/attributedef.class.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index d7aa300f2..f74488bb7 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -4136,6 +4136,12 @@ class AttributeStopWatch extends AttributeDefinition return $this->Get('states'); } + public function AlwaysLoadInTables() + { + // Each and every stop watch is accessed for computing the highlight code (DBObject::GetHighlightCode()) + return true; + } + /** * Construct a brand new (but configured) stop watch */