From b54e457cbbeaa4a73088e29f116496a058801817 Mon Sep 17 00:00:00 2001 From: acognet Date: Wed, 29 Jan 2020 09:54:56 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B02038=20-=20New=20dashlet=20Kanban?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/cmdbabstract.class.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index ddfe4a816..1b57e6a7a 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -2861,7 +2861,7 @@ EOF * @throws \MySQLException * @throws \MySQLHasGoneAwayException */ - public function DisplayStimulusForm(WebPage $oPage, $sStimulus, $aPrefillFormParam = null) + public function DisplayStimulusForm(WebPage $oPage, $sStimulus, $aPrefillFormParam = null, $bDisplayBareProperties = true) { $sClass = get_class($this); $iKey = $this->GetKey(); @@ -2922,7 +2922,7 @@ HTML $aExpectedAttributes = $aPrefillFormParam['expected_attributes']; } $sButtonsPosition = MetaModel::GetConfig()->Get('buttons_position'); - if ($sButtonsPosition == 'bottom') + if ($sButtonsPosition == 'bottom' && $bDisplayBareProperties) { // bottom: Displays the ticket details BEFORE the actions $oPage->add('
'); @@ -3033,7 +3033,7 @@ HTML
HTML ); - if ($sButtonsPosition != 'top') + if ($sButtonsPosition != 'top' && $bDisplayBareProperties) { // bottom or both: Displays the ticket details AFTER the actions $oPage->add('
');