Commit 8160489b authored by Cyril Vazquez's avatar Cyril Vazquez
Browse files

Search returns only non disposed archives

parent fe55e20d
......@@ -37,6 +37,7 @@ class Content
* @param date $dateFrom
* @param date $dateTo
* @param string $originatorOrgRegNumber
* @param bool $disposed
*
* @return Array Array of archive description
*/
......@@ -45,7 +46,8 @@ class Content
$descriptionLevel = 'File',
$dateFrom = null,
$dateTo = null,
$originatorOrgRegNumber = null)
$originatorOrgRegNumber = null,
$disposed = false)
{
$queryParts = array();
$queryParams = array();
......@@ -70,6 +72,10 @@ class Content
$queryParams['descriptionLevel'] = $descriptionLevel;
$queryParts['descriptionLevel'] = "descriptionLevel=:descriptionLevel";
if (!$disposed) {
$queryParts['notDestroyed'] = "status!='disposed'";
}
switch ($descriptionLevel) {
// Search record groups
......
Supports Markdown
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