From f0956da0ea0c4df9a1ba2487f40418d730c705b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Wed, 21 Sep 2022 15:33:07 +0200 Subject: [PATCH] Hide path badge on seletpicker items. --- assets/css/selectpicker_extensions.css | 10 +++++++++- src/Form/Type/StructuralEntityType.php | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/assets/css/selectpicker_extensions.css b/assets/css/selectpicker_extensions.css index 925ab592..cda2278e 100644 --- a/assets/css/selectpicker_extensions.css +++ b/assets/css/selectpicker_extensions.css @@ -11,4 +11,12 @@ } .dropdown-item .picker-hs { display: inherit; -} \ No newline at end of file +} + +/** Bootstrap-select Unhide on selected element */ +.picker-us { + display: inherit; +} +.dropdown-item .picker-us { + display: none; +} diff --git a/src/Form/Type/StructuralEntityType.php b/src/Form/Type/StructuralEntityType.php index 7ef5f8ed..c2d3d163 100644 --- a/src/Form/Type/StructuralEntityType.php +++ b/src/Form/Type/StructuralEntityType.php @@ -253,7 +253,7 @@ class StructuralEntityType extends AbstractType $html .= $this->getElementNameWithLevelWhitespace($choice, $options, ''); if ($options['show_fullpath_in_subtext'] && null !== $choice->getParent()) { - $html .= ' ' . trim(htmlspecialchars($choice->getParent()->getFullPath())) . ''; + $html .= ' ' . trim(htmlspecialchars($choice->getParent()->getFullPath())) . ''; } if ($choice instanceof AttachmentType && !empty($choice->getFiletypeFilter())) {