objectManager, add rejection support. Add support in objectManager for handling rejected
data.
This commit is contained in:
committed by
WineHQ
parent
18bb33902e
commit
c545581571
@@ -838,19 +838,21 @@ class Application {
|
||||
return $sLink;
|
||||
}
|
||||
|
||||
function objectGetEntries($bQueued)
|
||||
function objectGetEntries($bQueued, $bRejected)
|
||||
{
|
||||
$sQuery = "SELECT * FROM appFamily WHERE
|
||||
appFamily.queued = '?'";
|
||||
|
||||
$sQueued = objectManager::getQueueString($bQueued, $bRejected);
|
||||
|
||||
if($bQueued && !application::canEdit())
|
||||
{
|
||||
$sQuery .= "AND appFamily.submitterId = '?'";
|
||||
$hResult = query_parameters($sQuery, $bQueued ? "true" : "false",
|
||||
$hResult = query_parameters($sQuery, $sQueued,
|
||||
$_SESSION['current']->iUserId);
|
||||
} else
|
||||
{
|
||||
$hResult = query_parameters($sQuery, $bQueued ? "true" : "false");
|
||||
$hResult = query_parameters($sQuery, $sQueued);
|
||||
}
|
||||
|
||||
if(!$hResult)
|
||||
|
||||
Reference in New Issue
Block a user