diff --git a/timesheet/inc/class.timesheet_ui.inc.php b/timesheet/inc/class.timesheet_ui.inc.php index 305d3908a4..0b6fb93bd7 100644 --- a/timesheet/inc/class.timesheet_ui.inc.php +++ b/timesheet/inc/class.timesheet_ui.inc.php @@ -699,7 +699,7 @@ class timesheet_ui extends timesheet_bo } } // Update start / end dates for custom - if($query_in['filter'] != 'custom') + if($query_in['filter'] != 'custom' && Api\Json\Response::isJSONResponse()) { Api\Json\Response::get()->call( 'app.timesheet.update_timespan',