Commit 72212244 authored by Nigel McNie's avatar Nigel McNie
Browse files

Slightly briefer way to set the default for the artefactchooser element.

parent 2607fcb6
...@@ -86,9 +86,8 @@ class PluginBlocktypeBlogpost extends PluginBlocktype { ...@@ -86,9 +86,8 @@ class PluginBlocktypeBlogpost extends PluginBlocktype {
public static function instance_config_form($instance) { public static function instance_config_form($instance) {
$configdata = $instance->get('configdata'); $configdata = $instance->get('configdata');
$default = (isset($configdata['artefactid'])) ? $configdata['artefactid'] : null;
return array( return array(
self::artefactchooser_element($default), self::artefactchooser_element((isset($configdata['artefactid'])) ? $configdata['artefactid'] : null),
); );
} }
......
Supports Markdown
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