@@ -415,7 +415,7 @@ class workspaceTools
|
|||||||
public function upgradeTranslation($flagXml = true, $flagMafe = true)
|
public function upgradeTranslation($flagXml = true, $flagMafe = true)
|
||||||
{
|
{
|
||||||
$this->initPropel(true);
|
$this->initPropel(true);
|
||||||
|
$this->checkDataConsistenceInContentTable();
|
||||||
G::LoadThirdParty('pear/json', 'class.json');
|
G::LoadThirdParty('pear/json', 'class.json');
|
||||||
|
|
||||||
$language = new Language();
|
$language = new Language();
|
||||||
@@ -440,6 +440,20 @@ class workspaceTools
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verification of the Content data table for column CON_ID
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
private function checkDataConsistenceInContentTable()
|
||||||
|
{
|
||||||
|
$criteriaSelect = new Criteria("workflow");
|
||||||
|
$criteriaSelect->add(
|
||||||
|
$criteriaSelect->getNewCriterion(ContentPeer::CON_ID, '%' . "'" . '%', Criteria::LIKE)->addOr(
|
||||||
|
$criteriaSelect->getNewCriterion(ContentPeer::CON_ID, '%' . '"' . '%', Criteria::LIKE)));
|
||||||
|
|
||||||
|
BasePeer::doDelete($criteriaSelect, Propel::getConnection("workflow"));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a connection to this workspace wf database
|
* Get a connection to this workspace wf database
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user