Commit f020757e authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't hide entire files to download block if only some files are not republishable

parent 2539124d
......@@ -47,7 +47,12 @@ class PluginBlocktypeFiledownload extends PluginBlocktype {
$result = '';
if (isset($configdata['artefactids']) && is_array($configdata['artefactids'])) {
foreach ($configdata['artefactids'] as $artefactid) {
$artefact = $instance->get_artefact_instance($artefactid);
try {
$artefact = $instance->get_artefact_instance($artefactid);
}
catch (ArtefactNotFoundException $e) {
continue;
}
$icondata = array(
'id' => $artefactid,
......
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