From 6ffeabae01aa8fed44996539fcb734ad4865c149 Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Wed, 15 Apr 2009 22:24:40 +0200 Subject: [PATCH] Fix get_mechanism to stop searching for a matching mechanism when the first one is encountered --- party.py | 1 + 1 file changed, 1 insertion(+) diff --git a/party.py b/party.py index 749879fe83..217f7ae9d7 100644 --- a/party.py +++ b/party.py @@ -121,6 +121,7 @@ class Party(ModelSQL, ModelView): for mechanism in party.contact_mechanisms: if mechanism.type == arg: res[party.id] = mechanism.value + break return res def create(self, cursor, user, values, context=None):