Skip to content
Snippets Groups Projects
Commit 8af90921 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

dev #53936 : apply to used type docs

parent f69cd151
Branches
Tags
4 merge requests!2080Sandbox detach zf from storm,!2061Master,!2018Dev#53936 bonus parametrage notice appliquer a d autres profilstype de doc,!2017Dev#53936 bonus parametrage notice appliquer a d autres profilstype de doc
Pipeline #373 failed with stage
in 8 minutes
......@@ -225,7 +225,12 @@ class ZendAfi_View_Helper_TagListeCochesSourceDocType extends ZendAfi_View_Helpe
protected function getInstances() {
$instances = parent::getInstances();
$instances = array_filter(
parent::getInstances(),
function($instance) {
return 0 < Class_Notice::countBy(['type_doc' => $instance->getId()]);
});
usort($instances,
function($a, $b)
{
......@@ -234,7 +239,6 @@ class ZendAfi_View_Helper_TagListeCochesSourceDocType extends ZendAfi_View_Helpe
return $instances;
}
}
......
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