Commit 119c1c5b authored by Carsten  Rose's avatar Carsten Rose
Browse files

BuildFormBootstrap: fixed bug with unintialised variable

parent 88093a16
......@@ -34,7 +34,7 @@ class BuildFormBootstrap extends AbstractBuildForm {
$this->isFirstPill = true;
// Set some defaults
if(!isset($this->formSpec['class'])) {
if (!isset($this->formSpec['class'])) {
$this->formSpec['class'] = 'container';
}
}
......@@ -155,7 +155,7 @@ class BuildFormBootstrap extends AbstractBuildForm {
if ($ii > $maxVisiblePill) {
$htmlDropdown = Support::wrapTag('<ul class="dropdown-menu">', $pillDropdown, true);
$htmlDropdown = '<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button">more <span class="caret"></span></a>' . $htmlDropdown;
$htmlDropdown = Support::wrapTag('<li role="presentation" class="dropdown">', $htmlDropdown,false);
$htmlDropdown = Support::wrapTag('<li role="presentation" class="dropdown">', $htmlDropdown, false);
}
$htmlDropdown = Support::wrapTag('<ul id="' . $this->getTabId() . '" class="nav nav-pills" role="tablist">', $pillButton . $htmlDropdown);
......@@ -193,9 +193,8 @@ class BuildFormBootstrap extends AbstractBuildForm {
<button id="form-edit-button" type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-wrench"></span></button>
</div>
BUTTONS;
if($this->store->getVar('SHOW_DEBUG_INFO', STORE_SYSTEM) === 'yes'){
$formEditButton = $tmp;
}
$formEditButton = ($this->store->getVar('SHOW_DEBUG_INFO', STORE_SYSTEM) === 'yes') ? $tmp : '';
$html = <<<BUTTONS
......
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