Request modification in ArchiveAccessTrait if processing status is 'true' or…

Request modification in ArchiveAccessTrait if processing status is 'true' or 'false' in search argument
parent a4269557
......@@ -793,9 +793,16 @@ trait archiveAccessTrait
$queryParts['hasParent'] = "parentArchiveId=null";
}
}
if (!empty($args['processingStatus'])) {
$queryParts['processingStatus'] = "processingStatus= :processingStatus";
$queryParams['processingStatus'] = $args['processingStatus'];
if (isset($args['processingStatus'])) {
if ($args['processingStatus'] === true) {
$queryParts['processingStatus'] = "processingStatus!=null";
} elseif ($args['processingStatus'] === false) {
$queryParts['processingStatus'] = "processingStatus=null";
} else {
$queryParts['processingStatus'] = "processingStatus= :processingStatus";
$queryParams['processingStatus'] = $args['processingStatus'];
}
}
if ($checkAccess) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment