Commit 3f708bb9 authored by Robert Lyon's avatar Robert Lyon

Bug 1823108: Use correct 'd-none' hidden class for gallery config form

There was a clash between old 'hidden' and new 'd-none' classes

behatnotneeded

Change-Id: Ibd9ca36428afd7df4435e26b30aec1a76f2b4e8a
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 64c8163e
......@@ -544,20 +544,20 @@ class PluginBlocktypeGallery extends MaharaCoreBlocktype {
if (isset($configdata['select']) && $configdata['select'] == 1) {
$imageids = isset($configdata['artefactids']) ? $configdata['artefactids'] : array();
$imageselector = self::imageselector($instance, $imageids);
$folderselector = self::folderselector($instance, null, 'hidden');
$externalurl = self::externalurl($instance, null, 'hidden');
$folderselector = self::folderselector($instance, null, 'd-none');
$externalurl = self::externalurl($instance, null, 'd-none');
}
else if (isset($configdata['select']) && $configdata['select'] == 2) {
$imageselector = self::imageselector($instance, null, 'hidden');
$folderselector = self::folderselector($instance, null, 'hidden');
$imageselector = self::imageselector($instance, null, 'd-none');
$folderselector = self::folderselector($instance, null, 'd-none');
$url = isset($configdata['external']) ? urldecode($configdata['external']) : null;
$externalurl = self::externalurl($instance, $url);
}
else {
$imageselector = self::imageselector($instance, null, 'hidden');
$imageselector = self::imageselector($instance, null, 'd-none');
$folderid = !empty($configdata['artefactid']) ? array(intval($configdata['artefactid'])) : null;
$folderselector = self::folderselector($instance, $folderid);
$externalurl = self::externalurl($instance, null, 'hidden');
$externalurl = self::externalurl($instance, null, 'd-none');
}
return array(
'user' => array(
......
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