From 38efa3467de3866efce797f8b8072afb8b1a28e0 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sat, 12 Sep 2009 12:20:54 -0400 Subject: [PATCH] Need to move this comparison after the loop. If we are editing an event that was already accepted, we might hit max_reservations before we get to the event we are editing. --- kronolith/lib/Resource/Single.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kronolith/lib/Resource/Single.php b/kronolith/lib/Resource/Single.php index b40e175e8..3814a0881 100644 --- a/kronolith/lib/Resource/Single.php +++ b/kronolith/lib/Resource/Single.php @@ -68,7 +68,7 @@ class Kronolith_Resource_Single extends Kronolith_Resource_Base } } - return true; + return ($conflicts < $this->get('max_reservations')); } /** -- 2.11.0