Merge branch '2.0' of git.colosa.net:processmaker into 2.0

This commit is contained in:
fernando
2011-03-21 19:15:29 -04:00
5 changed files with 12 additions and 964 deletions

View File

@@ -564,9 +564,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'];
}