diff --git ui/app/controllers/CControllerLatest.php ui/app/controllers/CControllerLatest.php index 4b33faec9f..c1cacd9d0d 100644 --- ui/app/controllers/CControllerLatest.php +++ ui/app/controllers/CControllerLatest.php @@ -302,10 +302,7 @@ abstract class CControllerLatest extends CController { $items = CMacrosResolverHelper::resolveItemNames($items); $items = CMacrosResolverHelper::resolveTimeUnitMacros($items, ['delay', 'history', 'trends']); - // Choosing max history period for already filtered items having data. - $history_period = $show_without_data ? ZBX_HISTORY_PERIOD : null; - - $history = Manager::History()->getLastValues($items, 2, $history_period); + $history = Manager::History()->getLastValues($items, 2, ZBX_HISTORY_PERIOD); $prepared_data['items'] = $items; $prepared_data['history'] = $history;