Merge code from github to bitbucket 2014-08-14
This commit is contained in:
@@ -1051,8 +1051,8 @@ class AppCacheView extends BaseAppCacheView
|
||||
$criteria->getNewCriterion(AppCacheViewPeer::APP_STATUS, "CANCELLED", CRITERIA::EQUAL)->addAnd(
|
||||
$criteria->getNewCriterion(AppCacheViewPeer::DEL_THREAD_STATUS, "CLOSED"))
|
||||
)->addOr(
|
||||
//Completed - getCompleted()
|
||||
$criteria->getNewCriterion(AppCacheViewPeer::APP_STATUS, "COMPLETED", CRITERIA::EQUAL)
|
||||
$criteria->getNewCriterion(AppCacheViewPeer::APP_STATUS, "COMPLETED", CRITERIA::EQUAL)->addAnd(
|
||||
$criteria->getNewCriterion(AppCacheViewPeer::DEL_LAST_INDEX, '1', Criteria::EQUAL))
|
||||
);
|
||||
|
||||
if (!$doCount) {
|
||||
|
||||
@@ -211,6 +211,8 @@ class AppDelegation extends BaseAppDelegation
|
||||
|
||||
public function LoadParallel ($AppUid)
|
||||
{
|
||||
$aCases = array();
|
||||
|
||||
$c = new Criteria( 'workflow' );
|
||||
$c->addSelectColumn( AppDelegationPeer::APP_UID );
|
||||
$c->addSelectColumn( AppDelegationPeer::DEL_INDEX );
|
||||
|
||||
@@ -844,7 +844,9 @@ class OutputDocument extends BaseOutputDocument
|
||||
//$pdf->SetFont('dejavusans', '', 14, '', true);
|
||||
// Detect chinese, japanese, thai
|
||||
if (preg_match('/[\x{30FF}\x{3040}-\x{309F}\x{4E00}-\x{9FFF}\x{0E00}-\x{0E7F}]/u', $sContent, $matches)) {
|
||||
$pdf->SetFont('kozminproregular');
|
||||
$fileArialunittf = PATH_THIRDPARTY . "tcpdf" . PATH_SEP . "fonts" . PATH_SEP . "arialuni.ttf";
|
||||
|
||||
$pdf->SetFont((!file_exists($fileArialunittf))? "kozminproregular" : $pdf->addTTFfont($fileArialunittf, "TrueTypeUnicode", "", 32));
|
||||
}
|
||||
|
||||
// Add a page
|
||||
|
||||
Reference in New Issue
Block a user