Merge branch 'release/3.2' of bitbucket.org:colosa/processmaker into bugfix/HOR-2902
This commit is contained in:
@@ -30,8 +30,12 @@
|
|||||||
////////////////////////////////////////////////////
|
////////////////////////////////////////////////////
|
||||||
use ProcessMaker\Util\ElementTranslation;
|
use ProcessMaker\Util\ElementTranslation;
|
||||||
|
|
||||||
if (! class_exists( 'PMScript' )) {
|
if (!class_exists('Monolog\Logger')) {
|
||||||
G::LoadClass( 'pmScript' );
|
Bootstrap::initVendors();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!class_exists('PMScript')) {
|
||||||
|
G::LoadClass('pmScript');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -297,6 +297,15 @@ class ListParticipatedLast extends BaseListParticipatedLast
|
|||||||
$aConditions[] = array(ProcessPeer::PRO_CATEGORY, "'".$category."'");
|
$aConditions[] = array(ProcessPeer::PRO_CATEGORY, "'".$category."'");
|
||||||
$criteria->addJoinMC($aConditions, Criteria::INNER_JOIN);
|
$criteria->addJoinMC($aConditions, Criteria::INNER_JOIN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Those filters: $newestthan, $oldestthan is used from mobile GET /light/participated
|
||||||
|
if ($newestthan != '') {
|
||||||
|
$criteria->add( $criteria->getNewCriterion( ListParticipatedLastPeer::DEL_DELEGATE_DATE, $newestthan, Criteria::GREATER_THAN ));
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($oldestthan != '') {
|
||||||
|
$criteria->add( $criteria->getNewCriterion( ListParticipatedLastPeer::DEL_DELEGATE_DATE, $oldestthan, Criteria::LESS_THAN ));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function loadList($usr_uid, $filters = array(), $callbackRecord = null, $appUid = '')
|
public function loadList($usr_uid, $filters = array(), $callbackRecord = null, $appUid = '')
|
||||||
|
|||||||
Reference in New Issue
Block a user