HOR-4450
This commit is contained in:
committed by
Paula Quispe
parent
a73fb850a3
commit
51840119ab
@@ -337,7 +337,7 @@ class WebEntry
|
||||
*
|
||||
* return void
|
||||
*/
|
||||
protected function setWeData($webEntryUid, $arrayData)
|
||||
protected function setWeData($webEntryUid)
|
||||
{
|
||||
try {
|
||||
//Verify data
|
||||
@@ -559,17 +559,15 @@ class WebEntry
|
||||
}
|
||||
|
||||
//Update
|
||||
if (!isset($arrayData['WE_LINK_GENERATION']) || $arrayData['WE_LINK_GENERATION']==='DEFAULT') {
|
||||
//Update where
|
||||
$criteriaWhere = new \Criteria("workflow");
|
||||
$criteriaWhere->add(\WebEntryPeer::WE_UID, $webEntryUid);
|
||||
//Update where
|
||||
$criteriaWhere = new \Criteria("workflow");
|
||||
$criteriaWhere->add(\WebEntryPeer::WE_UID, $webEntryUid);
|
||||
|
||||
//Update set
|
||||
$criteriaSet = new \Criteria("workflow");
|
||||
$criteriaSet->add(\WebEntryPeer::WE_DATA, $webEntryData);
|
||||
//Update set
|
||||
$criteriaSet = new \Criteria("workflow");
|
||||
$criteriaSet->add(\WebEntryPeer::WE_DATA, $webEntryData);
|
||||
|
||||
\BasePeer::doUpdate($criteriaWhere, $criteriaSet, \Propel::getConnection("workflow"));
|
||||
}
|
||||
\BasePeer::doUpdate($criteriaWhere, $criteriaSet, \Propel::getConnection("workflow"));
|
||||
} catch (\Exception $e) {
|
||||
throw $e;
|
||||
}
|
||||
@@ -639,7 +637,7 @@ class WebEntry
|
||||
}
|
||||
|
||||
//Set WE_DATA
|
||||
$this->setWeData($webEntryUid, $arrayData);
|
||||
$this->setWeData($webEntryUid);
|
||||
|
||||
//Return
|
||||
return $this->getWebEntry($webEntryUid);
|
||||
@@ -720,7 +718,7 @@ class WebEntry
|
||||
}
|
||||
|
||||
//Set WE_DATA
|
||||
$this->setWeData($webEntryUid, $arrayData);
|
||||
$this->setWeData($webEntryUid);
|
||||
|
||||
//Return
|
||||
if (!$this->formatFieldNameInUppercase) {
|
||||
|
||||
@@ -400,6 +400,13 @@ class WebEntryEvent
|
||||
$languages[] = $mLang['LANG_ID'];
|
||||
}
|
||||
$this->arrayFieldDefinition['WE_LINK_LANGUAGE']['defaultValues'] = $languages;
|
||||
} else {
|
||||
$this->arrayFieldDefinition['WE_LINK_SKIN']['required'] = false;
|
||||
$this->arrayFieldDefinition['WE_LINK_LANGUAGE']['required'] = false;
|
||||
$this->arrayFieldDefinition['WE_LINK_DOMAIN']['required'] = false;
|
||||
$this->arrayFieldDefinition['WE_LINK_SKIN']['empty'] = true;
|
||||
$this->arrayFieldDefinition['WE_LINK_LANGUAGE']['empty'] = true;
|
||||
$this->arrayFieldDefinition['WE_LINK_DOMAIN']['empty'] = true;
|
||||
}
|
||||
|
||||
$process = new BusinessModelProcess();
|
||||
|
||||
Reference in New Issue
Block a user