BUG 6350: SOLVED, we just to validate the process title as required

This commit is contained in:
erik
2011-03-21 16:05:02 -04:00
parent bfc93d1a75
commit 044f2420c8
2 changed files with 10 additions and 4 deletions

View File

@@ -565,9 +565,10 @@ class Process extends BaseProcess {
while( $dt->next() ) {
$row = $dt->getRow();
// verify if the title is already set on the current language
if ( $row['CON_CATEGORY'] == 'PRO_TITLE' && trim($row['CON_VALUE']) == '') {
if ( ($row['CON_CATEGORY'] == 'PRO_TITLE' || $row['CON_CATEGORY'] == 'PRO_DESCRIPTION') && trim($row['CON_VALUE']) == '') {
// if not, then load the record to generate content for current language
$row = $this->load($row['CON_ID']);
$proData = $this->load($row['CON_ID']);
$row['CON_VALUE'] = $row['CON_CATEGORY'] == 'PRO_TITLE' ? $proData['PRO_TITLE'] : $proData['PRO_DESCRIPTION'];
}
$processesDetails[ $row['CON_ID']] [$row['CON_CATEGORY']] = $row['CON_VALUE'];
}