This commit is contained in:
Roly Rudy Gutierrez Pinto
2018-03-28 08:31:06 -04:00
parent 349165227d
commit 8bca6702d5
2 changed files with 17 additions and 12 deletions

View File

@@ -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) {

View File

@@ -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();