@@ -268,7 +268,7 @@ public function VersandartenEdit(): void
268
268
'geschaeftsbrief_vorlage ' , $ geschaeftsbrief_vorlagen , $ daten ['geschaeftsbrief_vorlage ' ]);
269
269
270
270
$ this ->app ->Tpl ->addSelect ('SELMODUL ' , 'modul ' , 'modul ' ,
271
- $ this ->VersandartenSelModul (), $ form ['modul ' ]);
271
+ $ this ->VersandartenSelModul (true ), $ form ['modul ' ]);
272
272
$ this ->app ->Tpl ->Set ('BEZEICHNUNG ' , $ form ['bezeichnung ' ]);
273
273
$ this ->app ->Tpl ->Set ('TYPE ' , $ form ['type ' ]);
274
274
$ this ->app ->Tpl ->Set ('PROJEKT ' , $ form ['projekt ' ]);
@@ -713,7 +713,7 @@ public function VersandartenCreate()
713
713
return $ this ->HandleSaveAssistantAjaxAction ();
714
714
}
715
715
716
- $ modulelist = $ this ->VersandartenSelModul ();
716
+ $ modulelist = $ this ->VersandartenSelModul (true );
717
717
$ auswahlmodul = $ this ->app ->Secure ->GetGET ('auswahl ' );
718
718
719
719
if ($ auswahlmodul && isset ($ modulelist [$ auswahlmodul ])) {
@@ -791,9 +791,12 @@ public function loadModule(string $module, int $moduleId = 0) : ?Versanddienstle
791
791
* Retrieve all Versandarten from lib/versandarten/
792
792
* @return array
793
793
*/
794
- function VersandartenSelModul () : array
794
+ function VersandartenSelModul (bool $ addEmpty = false ) : array
795
795
{
796
796
$ result = [];
797
+ if ($ addEmpty )
798
+ $ result ['' ] = '' ;
799
+
797
800
$ pfad = dirname (__DIR__ ).'/lib/versandarten ' ;
798
801
if (!is_dir ($ pfad ))
799
802
return $ result ;
0 commit comments