[Zendesk 3658] Process Lists in the new case is showing the title and the date of update.

R-2018
[Zendesk 3658] Process Lists in the new case is showing the title and the date of update.

R-2018
[Zendesk 3658] Process Lists in the new case is showing the title and the date of update.

R-2018
[Zendesk 3658] Process Lists in the new case is showing the title and the date of update.

R-2018
[Zendesk 3658] Process Lists in the new case is showing the title and the date of update
This commit is contained in:
Dheeyi William
2016-10-07 12:49:26 -04:00
parent e12af589ac
commit 468c25d392
2 changed files with 13 additions and 11 deletions

View File

@@ -503,16 +503,21 @@ class Process extends BaseProcess
return (is_object( $oPro ) && get_class( $oPro ) == 'Process');
}
public static function existsByProTitle ($proTitle)
/**
* @param $proTitle
* @return bool
* @throws PropelException
*/
public static function existsByProTitle($proTitle)
{
$oCriteria = new Criteria("workflow");
$oCriteria->addSelectColumn(ProcessPeer::PRO_TITLE);
$oCriteria->add( ProcessPeer::PRO_TITLE, $proTitle );
$oDataset = ProcessPeer::doSelectRS( $oCriteria, Propel::getDbConnection('workflow_ro') );
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
$oCriteria->add(ProcessPeer::PRO_TITLE, $proTitle);
$oDataset = ProcessPeer::doSelectRS($oCriteria, Propel::getDbConnection('workflow_ro'));
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
$oDataset->next();
$aRow = $oDataset->getRow();
return ($aRow)? true : false;
return ($aRow) ? true : false;
}
public static function getByProTitle($proTitle)