Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
archivesCourrier
Commits
8160489b
Commit
8160489b
authored
Sep 20, 2017
by
Cyril Vazquez
Browse files
Search returns only non disposed archives
parent
fe55e20d
Changes
1
Hide whitespace changes
Inline
Side-by-side
bundle/archivesCourrier/Controller/Content.php
View file @
8160489b
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment