From 388a266822aae2ad88453b32121f5ec5f9a24618 Mon Sep 17 00:00:00 2001 From: Cris Date: Thu, 1 Oct 2020 11:17:14 +0200 Subject: [PATCH] Modified Dropdown-Widget Organisationseinheit Modified to enable empty default-value and default text. Signed-off-by: Cris --- application/widgets/Organisationseinheit_widget.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/widgets/Organisationseinheit_widget.php b/application/widgets/Organisationseinheit_widget.php index e4fbfe2ba..8aba73acc 100644 --- a/application/widgets/Organisationseinheit_widget.php +++ b/application/widgets/Organisationseinheit_widget.php @@ -31,7 +31,10 @@ class Organisationseinheit_widget extends DropdownWidget { // NOTE: no need to call addSelectToModel because getRecursiveList already returns // the correct names of the fields - $this->setElementsArray($this->OrganisationseinheitModel->getRecursiveList()); + $this->setElementsArray($this->OrganisationseinheitModel->getRecursiveList(), + true, + $this->p->t('lehre', 'organisationseinheit'), + 'No organisational unit found'); } $this->loadDropDownView($widgetData);