HOR-1008: Moving the counter method call to be executed only if it's mandatory to do it.

This commit is contained in:
Gustavo Adolfo Cruz Laura
2016-05-13 12:27:09 -04:00
parent 8ba0db8926
commit 9a0583b2aa

View File

@@ -2011,12 +2011,8 @@ class workspaceTools
$this->regenerateListParticipatedHistory(); // this list require no translation $this->regenerateListParticipatedHistory(); // this list require no translation
$this->regenerateListParticipatedLast(); // this list require no translation $this->regenerateListParticipatedLast(); // this list require no translation
$this->regenerateListPaused(); // this list require no translation $this->regenerateListPaused(); // this list require no translation
$this->migrateCounters();
} }
// ADD LISTS COUNTS
$this->migrateCounters();
if (!$flagReinsert) { if (!$flagReinsert) {
$this->listFirstExecution("insert"); $this->listFirstExecution("insert");
} }
@@ -2439,6 +2435,7 @@ class workspaceTools
public function migrateCounters() public function migrateCounters()
{ {
$this->initPropel(true);
$aTypes = array( $aTypes = array(
'to_do', 'to_do',
'draft', 'draft',