Commit 13485914 authored by Hugh Davenport's avatar Hugh Davenport
Browse files

Fix display issue with groupviews blocktype



When not configured, it doesn't use the default values

Bug #787444

Change-Id: I0274986fc40d418ecf8d876bf811796e18b53e4c
Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
parent fe67a9fa
......@@ -56,6 +56,10 @@ class PluginBlocktypeGroupViews extends SystemBlocktype {
public static function render_instance(BlockInstance $instance, $editing=false) {
$configdata = $instance->get('configdata');
if (!isset($configdata['showgroupview'])) {
// If not set, use default
$configdata['showgroupviews'] = 1;
}
$groupid = $instance->get_view()->get('group');
if (!$groupid) {
return '';
......
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