From cdbe269e1b06a03da1c600c84aaf15a3ecea3ad9 Mon Sep 17 00:00:00 2001 From: Mingsong Hu <mingsonghu@Mingsongs-MBP.gateway> Date: Tue, 22 Oct 2019 12:27:39 +1100 Subject: [PATCH] Fix profile plugin value bug --- src/Form/HmDisplayProfileForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/HmDisplayProfileForm.php b/src/Form/HmDisplayProfileForm.php index 87c8811..2979542 100644 --- a/src/Form/HmDisplayProfileForm.php +++ b/src/Form/HmDisplayProfileForm.php @@ -79,7 +79,7 @@ class HmDisplayProfileForm extends EntityForm { '#type' => 'radios', '#title' => $this->t('Display plugin'), '#options' => $display_plugin_labels, - '#default_value' => $hm_display_profile->get("plugin") ?: ['hm_display_jstree'], + '#default_value' => $hm_display_profile->get("plugin") ?: 'hm_display_jstree', '#description' => $this->t('Display plugin that is in charge of rendering the hierarchy view.'), '#required' => TRUE, ]; -- GitLab