From f1d9bb2f64dfbe63cb22624384c7e4c2bd58adb1 Mon Sep 17 00:00:00 2001 From: "ghendricks%novell.com" Date: Mon, 27 Nov 2006 18:00:04 +0000 Subject: [PATCH] Need to exit the loop when checking for ownership of multiple plans --- webtools/testopia/Bugzilla/Testopia/TestCase.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/webtools/testopia/Bugzilla/Testopia/TestCase.pm b/webtools/testopia/Bugzilla/Testopia/TestCase.pm index 5da61218177a..58880a7c3906 100644 --- a/webtools/testopia/Bugzilla/Testopia/TestCase.pm +++ b/webtools/testopia/Bugzilla/Testopia/TestCase.pm @@ -1346,6 +1346,7 @@ sub candelete { my $own_all = 1; foreach my $plan (@{$self->plans}){ $own_all == 0 if (Bugzilla->user->id != $plan->author->id); + last; } return 1 if $own_all;