diff options
| author | Thomas Hackl <hackl@data-quest.de> | 2021-10-07 09:10:38 +0000 |
|---|---|---|
| committer | Thomas Hackl <hackl@data-quest.de> | 2021-10-07 09:10:38 +0000 |
| commit | 7580842a16382cbf2ba50f227eacafd4869c1eba (patch) | |
| tree | 4db07df081715b434c287e3824289df88e16ea84 /app/controllers/resources/print.php | |
| parent | 754d05d19fc3fdc6a38e5ba9fe232c0abfc88d0c (diff) | |
TIC 11438 Export-Buchungstypen
Diffstat (limited to 'app/controllers/resources/print.php')
| -rw-r--r-- | app/controllers/resources/print.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app/controllers/resources/print.php b/app/controllers/resources/print.php index 63da03f..a21db5e 100644 --- a/app/controllers/resources/print.php +++ b/app/controllers/resources/print.php @@ -128,10 +128,20 @@ class Resources_PrintController extends AuthenticatedController //and In both cases we must collect the selected //clipboard, the selected date and the selected schedule type. //Furthermore a date and the type of schedule has been selected. + // Also check for booking types to export. $this->selected_clipboard_id = Request::get('clipboard_id'); $this->schedule_type = Request::get('schedule_type'); $this->selected_date_string = Request::get('date'); - + $this->selected_booking_types = Request::intArray('bookingtypes') ?: + Config::get()->RESOURCES_EXPORT_BOOKINGTYPES_DEFAULT; + + // All available booking types. + $this->booking_types = [ + 0 => _('Buchung'), + 1 => _('Reservierung'), + 2 => _('Sperrbuchung'), + 3 => _('Planungsbuchung') + ]; if (!$this->clipboard_selected && !$this->print_schedules) { //We have to load all selectable clipboards of the current user: $this->available_clipboards = Clipboard::getClipboardsForUser( |
