HOR-1008: Moving the counter method call to be executed only if it's mandatory to do it.
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user