From 9a0583b2aaf671de94a683db44712c9337aa0b5c Mon Sep 17 00:00:00 2001 From: Gustavo Adolfo Cruz Laura Date: Fri, 13 May 2016 12:27:09 -0400 Subject: [PATCH] HOR-1008: Moving the counter method call to be executed only if it's mandatory to do it. --- workflow/engine/classes/class.wsTools.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/workflow/engine/classes/class.wsTools.php b/workflow/engine/classes/class.wsTools.php index fab038479..6c63f55b5 100755 --- a/workflow/engine/classes/class.wsTools.php +++ b/workflow/engine/classes/class.wsTools.php @@ -2011,12 +2011,8 @@ class workspaceTools $this->regenerateListParticipatedHistory(); // this list require no translation $this->regenerateListParticipatedLast(); // this list require no translation $this->regenerateListPaused(); // this list require no translation + $this->migrateCounters(); } - - - // ADD LISTS COUNTS - $this->migrateCounters(); - if (!$flagReinsert) { $this->listFirstExecution("insert"); } @@ -2439,6 +2435,7 @@ class workspaceTools public function migrateCounters() { + $this->initPropel(true); $aTypes = array( 'to_do', 'draft',