From 78b73f0e08291435342fb7d42df7e2ac297a0aae Mon Sep 17 00:00:00 2001 From: Carsten Rose <carsten.rose@math.uzh.ch> Date: Wed, 14 Jun 2017 17:16:19 +0200 Subject: [PATCH] #3910 / 'submitButtonText' not shown After recode 'buildButtonCode()' the button text has been misplaced as tooltip and the class 'btn btn-default' was missing. Added. OK --- extension/qfq/qfq/BuildFormBootstrap.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extension/qfq/qfq/BuildFormBootstrap.php b/extension/qfq/qfq/BuildFormBootstrap.php index 4c3949b6b..0381ce31e 100644 --- a/extension/qfq/qfq/BuildFormBootstrap.php +++ b/extension/qfq/qfq/BuildFormBootstrap.php @@ -462,13 +462,12 @@ class BuildFormBootstrap extends AbstractBuildForm { // Button Save at bottom of form - only if there is a button text given. if ($this->formSpec[F_SUBMIT_BUTTON_TEXT] !== '') { - // Default setzen: $this->fillWrapLabelInputNote($this->formSpec[F_BS_LABEL_COLUMNS], $this->formSpec[F_BS_INPUT_COLUMNS], $this->formSpec[F_BS_NOTE_COLUMNS]); $buttonText = $this->formSpec[F_SUBMIT_BUTTON_TEXT]; - $htmlElement = $this->buildButtonCode('save-button', '', $buttonText, '', '', $this->formSpec[F_BUTTON_ON_CHANGE_CLASS]); + $htmlElement = $this->buildButtonCode('save-button', $buttonText, $buttonText, '', '', $this->formSpec[F_BUTTON_ON_CHANGE_CLASS], 'btn btn-default'); $html .= $this->wrapItem(WRAP_SETUP_LABEL, ''); $html .= $this->wrapItem(WRAP_SETUP_INPUT, $htmlElement); -- GitLab