From 5111c3a2b7c97be60f461e3a0c4cd6f3f98c53b9 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 21 Oct 2006 18:39:35 +0000 Subject: [PATCH] r1267: Fixing a SQL error because we were accessing the wrong option when updating in post_delete() --- includes/api_resolution.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api_resolution.php b/includes/api_resolution.php index aaae47f..cdc8f20 100644 --- a/includes/api_resolution.php +++ b/includes/api_resolution.php @@ -90,7 +90,7 @@ class ResolutionAPI extends API function post_delete() { build_resolutions(); - $this->registry->db->query("UPDATE " . TABLE_PREFIX . "bug SET resolution = " . $this->registry->options['defaultresolution'] . " WHERE resolution = " . $this->values['resolutionid']); + $this->registry->db->query("UPDATE " . TABLE_PREFIX . "bug SET resolution = " . $this->registry->clean($this->registry->options['defaultresolve'], TYPE_UINT) . " WHERE resolution = " . $this->values['resolutionid']); } } -- 2.22.5