Commit e9d51ed9 authored by Melissa Draper's avatar Melissa Draper
Browse files

Add video/audio artefacts to filebrowser invoke (bug 853658)



The internalmedia block was failing to show a list of files this
is because what used to be 'file' was now split into file video
and audio. It hence ignored the existence of non 'file' files.

Change-Id: I9b0cc2fe55094a088bdb7a215aeeee9827d4156f
Signed-off-by: default avatarMelissa Draper <melissa@catalyst.net.nz>
parent b241cb1f
......@@ -109,7 +109,7 @@ class PluginBlocktypeInternalmedia extends PluginBlocktype {
$element['name'] = 'artefactid';
$element['config']['selectone'] = true;
$element['filters'] = array(
'artefacttype' => array('file'),
'artefacttype' => array('file', 'audio', 'video'),
'filetype' => self::get_allowed_mimetypes(),
);
return $element;
......@@ -124,7 +124,7 @@ class PluginBlocktypeInternalmedia extends PluginBlocktype {
'blocktype' => 'internalmedia',
'limit' => 5,
'selectone' => true,
'artefacttypes' => array('file'),
'artefacttypes' => array('file', 'audio', 'video'),
'template' => 'artefact:file:artefactchooser-element.tpl',
);
}
......
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