From 131e57a99e6507cd62fa32afdf5d4fcddf9e8d88 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 8 Jun 2021 15:54:14 -0400 Subject: [PATCH] StartTimeShort should be StartDateTimeShort. Leave StartTimeShort for backwards compatibility. Add Storage, DiskSpace in status=>event --- web/ajax/status.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/ajax/status.php b/web/ajax/status.php index 9d14dd24d..96f83595c 100644 --- a/web/ajax/status.php +++ b/web/ajax/status.php @@ -108,7 +108,9 @@ $statusData = array( 'Cause' => true, 'Notes' => true, 'StartDateTime' => true, + # Left for backwards compatability. Remove in 1.37 'StartTimeShort' => array( 'sql' => 'date_format( StartDateTime, \''.MYSQL_FMT_DATETIME_SHORT.'\' )' ), + 'StartDateTimeShort' => array( 'sql' => 'date_format( StartDateTime, \''.MYSQL_FMT_DATETIME_SHORT.'\' )' ), 'EndDateTime' => true, 'Width' => true, 'Height' => true, @@ -131,8 +133,12 @@ $statusData = array( 'MonitorName' => array('sql' => '(SELECT Monitors.Name FROM Monitors WHERE Monitors.Id = Events.MonitorId)'), 'Name' => true, 'Cause' => true, + 'DiskSpace' => true, + 'Storage' => array('sql' => '(SELECT Storage.Name FROM Storage WHERE Storage.Id=Events.StorageId)'), 'StartDateTime' => true, + # Left for backwards compatability. Remove in 1.37 'StartTimeShort' => array( 'sql' => 'date_format( StartDateTime, \''.MYSQL_FMT_DATETIME_SHORT.'\' )' ), + 'StartDateTimeShort' => array( 'sql' => 'date_format( StartDateTime, \''.MYSQL_FMT_DATETIME_SHORT.'\' )' ), 'EndDateTime' => true, 'Width' => true, 'Height' => true,