From b954137ae25a0a85a00ec37fec495ca9db1d816b Mon Sep 17 00:00:00 2001 From: Robin Sonefors Date: Mon, 12 May 2014 10:54:49 +0200 Subject: [PATCH] httpapievent: Set in_scheduled_downtime to null always After months of discussion about it, this is the final call for bug #7804. No, this does not in any way help - this is just a way of saying "wontfix - see bug #7968". Setting it to null, rather than removing it, prevents any breakage. I would document it as deprecated, except I can't, because bug #7984. Change-Id: I203c01c7eab1c09560b7bae46fce5bfbc5324b3a Signed-off-by: Robin Sonefors --- modules/reports/libraries/HttpApiEvent_options.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/reports/libraries/HttpApiEvent_options.php b/modules/reports/libraries/HttpApiEvent_options.php index a1ec60508..904ca5660 100644 --- a/modules/reports/libraries/HttpApiEvent_options.php +++ b/modules/reports/libraries/HttpApiEvent_options.php @@ -212,7 +212,7 @@ class HttpApiEvent_options extends Summary_options { $row['state'] = strtolower(Current_status_Model::status_text($row['state'], true, $type)); // rename properties - $row['in_scheduled_downtime'] = (int) $row['downtime_depth']; + $row['in_scheduled_downtime'] = null; unset($row['downtime_depth']); if(isset($row['username'])) { // comments are included and we've got one of them! -- 2.11.4.GIT