From 205d377ca9c5b0be6c9f97734313385eb8f53f19 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 12 Oct 2016 16:12:57 +0200 Subject: [PATCH] * Timesheet/ImportExport: fix PHP Fatal Error Call to undefined method EGroupware\Api\Session::appsession() when exporting --- timesheet/inc/class.timesheet_export_csv.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/timesheet/inc/class.timesheet_export_csv.inc.php b/timesheet/inc/class.timesheet_export_csv.inc.php index f2dafe7204..1ac68cfa0f 100644 --- a/timesheet/inc/class.timesheet_export_csv.inc.php +++ b/timesheet/inc/class.timesheet_export_csv.inc.php @@ -11,6 +11,8 @@ * @version $Id$ */ +use EGroupware\Api; + /** * export plugin of addressbook */ @@ -34,7 +36,7 @@ class timesheet_export_csv implements importexport_iface_export_plugin { $selection = array(); if($options['selection'] == 'search') { - $query = $GLOBALS['egw']->session->appsession('index',TIMESHEET_APP); + $query = Api\Cache::getSession(TIMESHEET_APP, 'index'); $query['num_rows'] = -1; // all records $query['csv_export'] = true; // so get_rows method _can_ produce different content or not store state in the session $this->ui->get_rows($query,$selection,$readonlys,true); // true = only return the id's