Skip to content

Commit b807974

Browse files
committed
fix(wizard): show search input only if config allows it
1 parent 48d9887 commit b807974

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

inc/knowbase.class.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ public function showWizard() {
6565
echo '<div id="plugin_formcreator_wizard_right" class="card">';
6666
echo '<div class="card-body">';
6767

68-
echo '<div id="plugin_formcreator_searchBar">';
69-
$this->showSearchBar();
70-
echo '</div>';
68+
if (PluginFormcreatorEntityconfig::getUsedConfig('is_search_visible', Session::getActiveEntity()) == PluginFormcreatorEntityconfig::CONFIG_SEARCH_VISIBLE) {
69+
echo '<div id="plugin_formcreator_searchBar">';
70+
$this->showSearchBar();
71+
echo '</div>';
72+
}
7173
echo '<div id="plugin_formcreator_wizard_forms">';
7274
echo '</div>';
7375
echo '</div>';

0 commit comments

Comments
 (0)