Fix get_mechanism to stop searching for a matching mechanism when the first one is encountered

This commit is contained in:
Bertrand Chenal committed 2009-04-15 22:24:40 +02:00
1 parent 6d011806dc
commit 6ffeabae01
1 file changed
+1
+1
View File
@@ -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):