From d18e5c61c852d6a77b41fdf875adcae568452363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 2 Feb 2015 14:47:59 +0200 Subject: [PATCH 1/3] Notification::getSubscribers fix wrong getAll param --- lib/eventum/class.notification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/eventum/class.notification.php b/lib/eventum/class.notification.php index 7a7cd052b0..ad16cc7f77 100644 --- a/lib/eventum/class.notification.php +++ b/lib/eventum/class.notification.php @@ -1616,7 +1616,7 @@ public static function getSubscribers($issue_id, $type = null, $min_role = null) $params[] = $type; } try { - $emails = DB_Helper::getInstance()->getAll($stmt, $type); + $emails = DB_Helper::getInstance()->getAll($stmt, $params); } catch (DbException $e) { return array(); } From 2aa45d42f79afeeae8f85c7f6ef8a3d298833fd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 2 Feb 2015 16:12:00 +0200 Subject: [PATCH 2/3] fix getTimeSpentByIssues. bugfix to 5d1c40d6 --- lib/eventum/class.time_tracking.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/eventum/class.time_tracking.php b/lib/eventum/class.time_tracking.php index 8c85da9b97..2b4ba9ed26 100644 --- a/lib/eventum/class.time_tracking.php +++ b/lib/eventum/class.time_tracking.php @@ -316,7 +316,7 @@ public static function getTimeSpentByIssues(&$result) GROUP BY ttr_iss_id"; try { - $res = DB_Helper::getInstance()->fetchAssoc($stmt, false, $ids); + $res = DB_Helper::getInstance()->fetchAssoc($stmt, $ids); } catch (DbException $e) { return; } From 564d9809e78ad38378550a4376631bcd75497415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 2 Feb 2015 16:20:16 +0200 Subject: [PATCH 3/3] one more fix for d18e5c6 --- lib/eventum/class.notification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/eventum/class.notification.php b/lib/eventum/class.notification.php index ad16cc7f77..e6ad5b5c18 100644 --- a/lib/eventum/class.notification.php +++ b/lib/eventum/class.notification.php @@ -1610,7 +1610,7 @@ public static function getSubscribers($issue_id, $type = null, $min_role = null) WHERE sub_id = sbt_sub_id AND sub_iss_id=?"; - $params[] = $issue_id; + $params = array($issue_id); if ($type) { $stmt .= " AND\nsbt_type = ?"; $params[] = $type;